static Exception _TryParse(string text, out SymbolName result) { result = default(SymbolName); if (text == null) { return(new ArgumentNullException(nameof(text))); } if (text.Length == 0) { return(Failure.EmptyString(nameof(text))); } result = new SymbolName(text); if (result._flags == 0) { return(Failure.NotParsable(nameof(text), typeof(SymbolName))); } return(null); }
public static bool TryParse(string text, out SymbolName result) { return(_TryParse(text, out result) == null); }