public static SqlQuery Parse(string text) { TryCatch <SqlQuery> monadicParse = Monadic.Parse(text); monadicParse.ThrowIfFailed(); return(monadicParse.Result); }
public static ReadFeedCrossFeedRangeState Parse(string text) { if (text == null) { throw new ArgumentNullException(nameof(text)); } TryCatch <ReadFeedCrossFeedRangeState> monadicParse = Monadic.Parse(text); monadicParse.ThrowIfFailed(); return(monadicParse.Result); }
public static bool TryParse(string text, out SqlQuery sqlQuery) { TryCatch <SqlQuery> monadicParse = Monadic.Parse(text); if (monadicParse.Failed) { sqlQuery = default; return(false); } sqlQuery = monadicParse.Result; return(true); }
public static bool TryParse(string text, out ReadFeedCrossFeedRangeState state) { if (text == null) { throw new ArgumentNullException(nameof(text)); } TryCatch <ReadFeedCrossFeedRangeState> monadicParse = Monadic.Parse(text); if (monadicParse.Failed) { state = default; return(false); } state = monadicParse.Result; return(true); }