Result/ResultSuccess/Result.cs
/// <summary>
/// Error result with error object.
/// </summary>
/// <param name="error">Error object</param>
/// <returns>Error result.</returns>
Error result with error object.
Error result with error object .
public static Result Error(Error error)
    {
        if (error is null)
        {
            throw new ArgumentNullException(nameof(error));
        }
        return new Result { ErrorObj = error };
    }
public static Result Error ( Error error ) { if ( error is null ) { throw new ArgumentNullException ( nameof ( error ) ) ; } return new Result { ErrorObj = error } ; }
Error result with error object.
Error result with error object .
None
error
Error
None