public ConfigMember(MemberInfo info, ConfigData data) { this.data = data; this.Info = info; this.Name = info.Name; this.Group = XmlSettings <ConfigData> .GetGroup(info); this.Comment = XmlSettings <ConfigData> .GetComment(info); this.PresentationStyle = XmlSettings <ConfigData> .GetPresentationStyle(info); this.IsDangerous = XmlSettings <ConfigData> .IsDangerous(info); if (info.MemberType == MemberTypes.Property) { this.Type = (info as PropertyInfo).PropertyType; } else if (info.MemberType == MemberTypes.Field) { this.Type = (info as FieldInfo).FieldType; } }