예제 #1
0
        bool ISupportsInterning.EqualsForInterning(ISupportsInterning other)
        {
            MemberTypeOrNamespaceReference o = other as MemberTypeOrNamespaceReference;

            return(o != null && this.target == o.target && this.parentTypeDefinition == o.parentTypeDefinition &&
                   this.parentUsingScope == o.parentUsingScope && this.identifier == o.identifier &&
                   this.typeArguments == o.typeArguments);
        }
예제 #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);
        }
예제 #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);
        }