Пример #1
0
 public ReflectionPropertyViewModel(ClassViewModel effectiveParent, ClassViewModel declaringParent, PropertyInfo propetyInfo)
 {
     Parent          = declaringParent;
     EffectiveParent = effectiveParent;
     Info            = propetyInfo;
     Type            = new ReflectionTypeViewModel(Info.PropertyType);
 }
Пример #2
0
 public ReflectionParameterViewModel(MethodViewModel parent, ParameterInfo info) : base(parent)
 {
     Info = info;
     if (info.ParameterType.IsByRef)
     {
         Type = new ReflectionTypeViewModel(info.ParameterType.GetElementType());
     }
     else
     {
         Type = new ReflectionTypeViewModel(info.ParameterType);
     }
 }
Пример #3
0
 public ReflectionClassViewModel(Type type)
 {
     Info = type;
     Type = new ReflectionTypeViewModel(type);
 }