C# Language Appliqué aux identificateurs qualifiés


Exemple

Fragment

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

Sortie de console

MyNamespace

Ma classe

MyNestedClass

MyStaticProperty