コード例 #1
0
ファイル: DnlibExtensions.cs プロジェクト: haise0/reAtomizer
        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));
        }