/// <summary> /// Converts a string to a FullSymbol /// </summary> /// <param name="symbolTable">SymbolTable to use to convert the string</param> /// <param name="str">String to convert to FullSymbol</param> /// <returns>The result of converting the provided string to a FullSymbol</returns> public static FullSymbol StringToFullSymbol(this SymbolTable symbolTable, string str) { FullSymbol fullSymbol; if (FullSymbol.TryGet(symbolTable, str, out fullSymbol)) { return(fullSymbol); } else { throw new ArgumentException("Unable to find FullSymbol for string: '" + str + "'"); } }