public ITypeReference ToTypeReference() { ITypeDefinition declTypeDef = this.DeclaringTypeDefinition; if (declTypeDef != null) { return(new NestedTypeReference(declTypeDef.ToTypeReference(), this.Name, this.TypeParameterCount - declTypeDef.TypeParameterCount)); } else { IAssembly asm = this.ParentAssembly; IAssemblyReference asmRef; if (asm != null) { asmRef = new AssemblyReferenceSpec(asm.AssemblyName); } else { asmRef = null; } return(new GetClassTypeReference(asmRef, this.Namespace, this.Name, this.TypeParameterCount)); } }
bool ISupportsInterning.EqualsForInterning(ISupportsInterning other) { AssemblyReferenceSpec o = other as AssemblyReferenceSpec; return(o != null && shortName == o.shortName); }