Exemple #1
0
        public static string GetNamespace(this IType type, StringBuilder sb)
        {
            var td = type as TypeDef;

            if (td != null)
            {
                return(td.Namespace);
            }
            var tr = type as TypeRef;

            if (tr != null)
            {
                return(tr.Namespace);
            }
            sb.Length = 0;
            return(FullNameCreator.Namespace(type, false, sb));
        }