예제 #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";
            }
        }
예제 #2
0
 public PropertyPage(PropertyInfo property, MemberXmlDocs docs) : base(docs)
 {
     _property = property;
     Title     = $"{DocUtilities.GetPropertySignature(_property, false, false, false)} property ({DocUtilities.GetDisplayTitle(_property.DeclaringType)})";
 }
예제 #3
0
파일: Page.cs 프로젝트: vgregor/Docpal
 public Page(MemberXmlDocs xmlDocs)
 {
     Docs = xmlDocs;
 }
예제 #4
0
 public FieldPage(FieldInfo field, MemberXmlDocs docs) : base(docs)
 {
     _field = field;
     Title  = $"{DocUtilities.GetFieldSignature(_field, false)} field ({DocUtilities.GetDisplayTitle(_field.DeclaringType)})";
 }