Ejemplo n.º 1
0
        public override Id MakeId(bool inContext)
        {
            if (IsPrimitiveType)
            {
                return(PrimitiveTypeId);
            }

            var ct = ContainingType;
            Id  l  = null;

            if (ct != null)
            {
                l = ContainingType.GetId(inContext);
            }
            else
            {
                if (tr.ResolutionScope.Kind == HandleKind.AssemblyReference)
                {
                    l = AssemblyPrefix;
                }

                if (!Namespace.IsGlobalNamespace)
                {
                    l += Namespace.ShortId;
                }
            }

            return(l + cx.Dot + cx.GetId(tr.Name));
        }
Ejemplo n.º 2
0
        public override Id MakeId(bool inContext)
        {
            if (IsPrimitiveType)
            {
                return(PrimitiveTypeId);
            }

            var name = cx.GetId(td.Name);

            Id l;

            if (ContainingType != null)
            {
                l = ContainingType.GetId(inContext) + cx.Dot;
            }
            else
            {
                l = AssemblyPrefix;

                var ns = Namespace;
                if (!ns.IsGlobalNamespace)
                {
                    l = l + ns.ShortId + cx.Dot;
                }
            }

            return(l + name);
        }