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 ConstructorsPage(Type type, IEnumerable <ConstructorInfo> ctors, Dictionary <ConstructorInfo, MemberXmlDocs> ctorsData) : base(null) { _type = type; _ctors = ctors; _ctorsData = ctorsData; Title = $"{DocUtilities.GetDisplayTitle(type)} constructors"; }
public MethodGroupPage(Type type, string name, Dictionary <MethodInfo, MemberXmlDocs> methodData) : base(null) { _type = type; _methodData = methodData; Title = $"{DocUtilities.GetDisplayTitle(type)}.{DocUtilities.GetIdentifier(name)} method"; }
public PropertyPage(PropertyInfo property, MemberXmlDocs docs) : base(docs) { _property = property; Title = $"{DocUtilities.GetPropertySignature(_property, false, false, false)} property ({DocUtilities.GetDisplayTitle(_property.DeclaringType)})"; }
public FieldPage(FieldInfo field, MemberXmlDocs docs) : base(docs) { _field = field; Title = $"{DocUtilities.GetFieldSignature(_field, false)} field ({DocUtilities.GetDisplayTitle(_field.DeclaringType)})"; }