public TypePage(Type type, MemberXmlDocs docs, ProjectXmlDocs prjDocs) : base(docs) { Type = type; _prjDocs = prjDocs; var name = DocUtilities.GetDisplayTitle(type, false); if (type.IsEnum) { Title = $"{name} Enum"; } else if (type.IsInterface) { Title = $"{name} Interface"; } else if (type.IsValueType) { Title = $"{name} Struct"; } else if (type.IsSubclassOf(typeof(Delegate))) { Title = $"{name} Delegate"; } else { Title = $"{name} Class"; } }
public PropertyPage(PropertyInfo property, MemberXmlDocs docs) : base(docs) { _property = property; Title = $"{DocUtilities.GetPropertySignature(_property, false, false, false)} property ({DocUtilities.GetDisplayTitle(_property.DeclaringType)})"; }
public Page(MemberXmlDocs xmlDocs) { Docs = xmlDocs; }
public FieldPage(FieldInfo field, MemberXmlDocs docs) : base(docs) { _field = field; Title = $"{DocUtilities.GetFieldSignature(_field, false)} field ({DocUtilities.GetDisplayTitle(_field.DeclaringType)})"; }