Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# reflection

//// Get name of type  
            Type MyType = Type.GetType("System.Collections.ArrayList");

            //Store all the tpyes 
            MemberInfo[] Mymemberinfoarray = MyType.GetMembers();

            //Display
            foreach (MemberInfo item in Mymemberinfoarray)
            {
                richTextBox1.AppendText(item.Name + " (" + item.MemberType + ") 
");
            }
 
PREVIOUS NEXT
Tagged: #reflection
ADD COMMENT
Topic
Name
3+2 =