A
ALI-R
I have defined a public enum in my assembly and I am trying to have access
to it through reflection:
Type theType = Type.GetType("MyAssemblyName.ParameterTypeEnum");
but I get this error:
Object reference not set to an instance of an object.
Why if I put for instance ,"Syste.Reflection.Assembly" instead of
"MyAssemblyName.ParameterTypeEnum",it works but it dosent work for mine.the
"ParameterTypeEnum"
is accessible in my code but when I try to extract its type,it shows that
error.
Thanks in advance
to it through reflection:
Type theType = Type.GetType("MyAssemblyName.ParameterTypeEnum");
but I get this error:
Object reference not set to an instance of an object.
Why if I put for instance ,"Syste.Reflection.Assembly" instead of
"MyAssemblyName.ParameterTypeEnum",it works but it dosent work for mine.the
"ParameterTypeEnum"
is accessible in my code but when I try to extract its type,it shows that
error.
Thanks in advance