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