public ReflectionPropertyViewModel(ClassViewModel effectiveParent, ClassViewModel declaringParent, PropertyInfo propetyInfo) { Parent = declaringParent; EffectiveParent = effectiveParent; Info = propetyInfo; Type = new ReflectionTypeViewModel(Info.PropertyType); }
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); } }
public ReflectionClassViewModel(Type type) { Info = type; Type = new ReflectionTypeViewModel(type); }