Mono.Rocks.Tools.XmlDocs.GetType C# (CSharp) Method

GetType() static private method

static private GetType ( CodeTypeReference type ) : string
type System.CodeDom.CodeTypeReference
return string
        static string GetType(CodeTypeReference type)
        {
            var b = type.BaseType;
            if (b.Contains ('`'))
                b = b.Substring (0, b.IndexOf ('`'));
            return b;
        }

Usage Example

Example #1
0
 protected virtual void AppendTypeName(CodeTypeReference type)
 {
     Cref.Append(XmlDocs.GetType(type));
 }