Answers for "c# reflection"

C#
1

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 + ") \n");
            }
Posted by: Guest on September-03-2021

Code answers related to "c# reflection"

C# Answers by Framework

Browse Popular Code Answers by Language