示例#1
0
        public bool HasTypeReference(string scope, string fullName)
        {
            Mixin.CheckFullName(fullName);

            if (!HasImage)
            {
                return(false);
            }

            return(GetTypeReference(scope, fullName) != null);
        }
示例#2
0
        public bool TryGetTypeReference(string scope, string fullName, out TypeReference type)
        {
            Mixin.CheckFullName(fullName);

            if (!HasImage)
            {
                type = null;
                return(false);
            }

            return((type = GetTypeReference(scope, fullName)) != null);
        }
示例#3
0
        public TypeDefinition GetType(string fullName)
        {
            Mixin.CheckFullName(fullName);

            int position = fullName.IndexOf('/');

            if (position > 0)
            {
                return(GetNestedType(fullName));
            }

            return(((TypeDefinitionCollection)this.Types).GetType(fullName));
        }