I have a static class like this:
public static class MyApp
{
public static volatile MultiThreadLogger Logger = new MultiThreadLogger();
}
And a string like this:
"MyApp.Logger"
How can I get the object reference just with knowing the string? The string can be different like "MyOtherNamespace.Subnamespace.StaticObjA.MemberIwantToAccess" and I don’t want to create a new instance, I want to access the static instance – just by the string.
Possible?
http://msdn.microsoft.com/en-us/library/w3f99sx1.aspx
How to get a Static property with Reflection