예제 #1
0
        public static void Example()
        {
            var      ctx        = new MyReflectionContext();
            TypeInfo mappedType = ctx.MapType(typeof(NotVeryIntresting).GetTypeInfo());

            foreach (PropertyInfo prop in mappedType.DeclaredProperties)
            {
                Console.WriteLine("{0}:{1}", prop.Name, prop.PropertyType.Name);
            }
        }
예제 #2
0
 static void Main(string[] args)
 {
     //ShowAssemblyName();
     //ShowNestType();
     //GetTypeInfo();
     //GetAssemblyName();
     //ShowNestType();
     //ReflectionType.Example_GetType();
     //MyLib.Compatibility.Example();
     //MyLib.Compatibility.Example_CreateInvoke();
     //MyLib.Compatibility.Example_DynamicConstruction();
     MyReflectionContext.Example();
     Console.ReadLine();
 }