bool ISupportsInterning.EqualsForInterning(ISupportsInterning other)
        {
            SimpleTypeOrNamespaceReference o = other as SimpleTypeOrNamespaceReference;

            return(o != null && this.parentTypeDefinition == o.parentTypeDefinition &&
                   this.parentUsingScope == o.parentUsingScope && this.identifier == o.identifier &&
                   this.typeArguments == o.typeArguments && this.lookupMode == o.lookupMode);
        }
Ejemplo n.º 2
0
        protected static TypeOrNamespaceReference MakeReference(string namespaceName)
        {
            string[] nameParts         = namespaceName.Split('.');
            TypeOrNamespaceReference r = new SimpleTypeOrNamespaceReference(nameParts[0], new ITypeReference[0], NameLookupMode.TypeInUsingDeclaration);

            for (int i = 1; i < nameParts.Length; i++)
            {
                r = new MemberTypeOrNamespaceReference(r, nameParts[i], new ITypeReference[0]);
            }
            return(r);
        }
Ejemplo n.º 3
0
        protected ITypeOrNamespaceReference MakeReference(string namespaceName)
        {
            string[] nameParts          = namespaceName.Split('.');
            ITypeOrNamespaceReference r = new SimpleTypeOrNamespaceReference(nameParts[0], new ITypeReference[0], resolver.CurrentTypeDefinition, resolver.UsingScope, true);

            for (int i = 1; i < nameParts.Length; i++)
            {
                r = new MemberTypeOrNamespaceReference(r, nameParts[i], new ITypeReference[0], resolver.CurrentTypeDefinition, resolver.UsingScope);
            }
            return(r);
        }