示例#1
0
 /// <summary>
 ///     Returns a failed <see cref="TypeParserResult{T}"/> with the specified reason.
 /// </summary>
 /// <returns> A failed <see cref="TypeParserResult{T}"/>. </returns>
 protected static TypeParserResult <T> Failure(string reason)
 => TypeParserResult <T> .Failed(reason);
示例#2
0
 /// <summary>
 ///     Returns a successful <see cref="TypeParserResult{T}"/> with the specified value.
 /// </summary>
 /// <returns> A successful <see cref="TypeParserResult{T}"/>. </returns>
 protected static TypeParserResult <T> Success(T value)
 => TypeParserResult <T> .Successful(value);