Example #1
0
        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));
        }
Example #2
0
        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);
        }
Example #3
0
 public bool HasTypeReference(string scope, string fullName)
 {
     ModuleDefinition.CheckFullName(fullName);
     return(this.HasImage && this.GetTypeReference(scope, fullName) != null);
 }