public TypeDefinition GetType(string fullName) { ModuleDefinition.CheckFullName(fullName); if (fullName.IndexOf('/') > 0) { return(this.GetNestedType(fullName)); } return(((TypeDefinitionCollection)this.Types).GetType(fullName)); }
public bool HasTypeReference(string scope, string fullName) { ModuleDefinition.CheckFullName(fullName); if (!this.HasImage) { return(false); } return(this.GetTypeReference(scope, fullName) != null); }
public bool TryGetTypeReference(string scope, string fullName, out TypeReference type) { ModuleDefinition.CheckFullName(fullName); if (!this.HasImage) { type = null; return(false); } TypeReference typeReference = this.GetTypeReference(scope, fullName); TypeReference typeReference1 = typeReference; type = typeReference; return(typeReference1 != null); }