Пример #1
0
 public COM(Type t, params object[] args)
 {
     Type        = t;
     Instance    = Activator.CreateInstance(t, args ?? new object[0]);
     Information = TypeInformation.GetTypeInformation(Instance);
 }
Пример #2
0
 public COM(object com)
 {
     Instance    = com;
     Type        = com.GetType();
     Information = TypeInformation.GetTypeInformation(com);
 }