Пример #1
0
        public static TypeSymbol FromString(string input)
        {
            if (ValueTypeSymbol.TryGetFromString(input, out var valueTypeSymbol))
            {
                return(valueTypeSymbol);
            }

            return(null);
        }
Пример #2
0
        public static bool GetType(string typeStr, out ValueTypeSymbol symbol)
        {
            foreach (var type in GetAll())
            {
                if (type.Name.Equals(typeStr))
                {
                    symbol = type;
                    return(true);
                }
            }

            symbol = null;
            return(false);
        }
Пример #3
0
        public static bool TryGetFromString(string input, out ValueTypeSymbol outSymbol)
        {
            foreach (var symbol in GetAll())
            {
                if (symbol.Name.Equals(input))
                {
                    outSymbol = symbol;
                    return(true);
                }
            }

            outSymbol = null;
            return(false);
        }