Introducing C#11: Extended nameof parameter scope

added by DotNetKicks
12/5/2022 4:24:43 PM

507 Views

C# 11 brings a novelty in the use of a method or parameter attribute. Usually it is impossible for an attribute to know the parameter of a method or of the parameter itself on which the attribute is applied, because they are not in the same scope. You just get a compilation error.


0 comments