public static TypeSymbol FromString(string input) { if (ValueTypeSymbol.TryGetFromString(input, out var valueTypeSymbol)) { return(valueTypeSymbol); } return(null); }
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); }
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); }