Пример #1
0
        /// <summary>
        /// Get's the MarkDown for a type
        /// </summary>
        /// <returns></returns>
        public string GetMarkDown()
        {
            if (this.IsObject)
            {
                string typeName = CustomTypeName.TypeOnly();
                return($"[{typeName}]({typeName}.md)");
            }
            if (this.IsCollection)
            {
                if (!string.IsNullOrEmpty(this.CustomTypeName))
                {
                    string typeName = CustomTypeName.TypeOnly();
                    return($"[{typeName}]({typeName}.md) collection");
                }
                if (CollectionResourceType == SimpleDataType.Object)
                {
                    string typeName = CollectionResourceType.ODataResourceName().TypeOnly();
                    return($"[{typeName}]({typeName}.md) collection");
                }
                else
                {
                    return($"{CollectionResourceType} collection");
                }
            }

            // Primitive type
            return(this.Type.ToString());
        }
Пример #2
0
 public virtual void InspectorExcude()
 {
     InspectorAppend = "";
     if (CustomTypeName.IsInvStr())
     {
         InspectorTypeName = string.Format($"<b>{TypeName}</b>");
     }
     else
     {
         InspectorTypeName = string.Format($"<b>{CustomTypeName}</b>");
     }
 }