There is no built-in way to do this, but there are some workarounds.
You can directly specify namespace names (no runtime, but hard to maintain):
String qualifiedName = String.Format("{0}.{1}", nameof(Foo), nameof(Bar));
Another option is to use a reflecton to get the full name directly (simpler, but has some runtime):
String qualifiedName = typeof(Foo.Bar).FullName;
Hope this helps.
source share