Applied to qualified identifiers C# with Example



Applied to qualified identifiers C# with Example

Snippet 
Console.WriteLine(nameof(CompanyNamespace.MyNamespace)); 
Console.WriteLine(nameof(MyClass)); 
Console.WriteLine(nameof(MyClass.MyNestedClass)); 
Console.WriteLine(nameof(MyNamespace.MyClass.MyNestedClass.MyStaticProperty)); 
Console Output 
MyNamespace 
MyClass 
MyNestedClass 
MyStaticProperty 
 

0 Comment's

Comment Form

Submit Comment