Example #1
0
 public TypeDefinition GetType(string fullName)
 {
     ModuleDefinition.CheckFullName(fullName);
     if (fullName.IndexOf('/') > 0)
     {
         return(this.GetNestedType(fullName));
     }
     return(((TypeDefinitionCollection)this.Types).GetType(fullName));
 }
Example #2
0
 public bool HasTypeReference(string scope, string fullName)
 {
     ModuleDefinition.CheckFullName(fullName);
     if (!this.HasImage)
     {
         return(false);
     }
     return(this.GetTypeReference(scope, fullName) != null);
 }
Example #3
0
        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);
        }