i want to dynamically load .dll files and then get value of a satic property. i am doing this but getting an error:
Assembly asm = Assembly.LoadFrom(dllPath);
Type type = asm.GetType();
PropertyInfo propertyInfo = type.GetProperty("info");
Info info = (Info)propertyInfo.GetValue(null,null);
info is the name of the static property. but when i do GetProperty the propertyInfo object is undefined.
--------------------------------
From: jas singh
-----------------------
Posted by a user from .NET 247 (
http://www.dotnet247.com/)
<Id>p2KyQgVZ8kG5rkJgXhmHgA==</Id>