예제 #1
0
        // <summary>
        // Try get type from the model using the fully qualified name.
        // </summary>
        private bool TryGetTypeFromMetadata(string typeFullName, out MetadataType type)
        {
            TypeUsage typeUsage;

            if (_perspective.TryGetTypeByName(typeFullName, _parserOptions.NameComparisonCaseInsensitive /* ignore case */, out typeUsage))
            {
                type = new MetadataType(typeFullName, typeUsage);
                return(true);
            }
            else
            {
                type = null;
                return(false);
            }
        }