Aqueduct.Configuration.Converter.TypeConverter.TryGetAliasedType C# (CSharp) Method

TryGetAliasedType() private method

private TryGetAliasedType ( string type, Type &aliasType ) : bool
type string
aliasType System.Type
return bool
        private bool TryGetAliasedType(string type, out Type aliasType)
        {
            string key =
                _typeAliases.Keys.FirstOrDefault(k => k.Equals(type, StringComparison.CurrentCultureIgnoreCase));

            if (key.IsNotEmpty())
            {
                aliasType = _typeAliases[key];
                return true;
            }

            aliasType = null;
            return false;
        }
    }