Exemplo n.º 1
0
        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";
            }
        }
Exemplo n.º 2
0
 public PropertyPage(PropertyInfo property, MemberXmlDocs docs) : base(docs)
 {
     _property = property;
     Title     = $"{DocUtilities.GetPropertySignature(_property, false, false, false)} property ({DocUtilities.GetDisplayTitle(_property.DeclaringType)})";
 }
Exemplo n.º 3
0
 public Page(MemberXmlDocs xmlDocs)
 {
     Docs = xmlDocs;
 }
Exemplo n.º 4
0
 public FieldPage(FieldInfo field, MemberXmlDocs docs) : base(docs)
 {
     _field = field;
     Title  = $"{DocUtilities.GetFieldSignature(_field, false)} field ({DocUtilities.GetDisplayTitle(_field.DeclaringType)})";
 }