Result
using System.
Runtime.
CompilerServices;
namespace NUnit.
Framework
{
[
System.
Runtime.
CompilerServices.
NullableContext(
1)]
[
System.
Runtime.
CompilerServices.
Nullable(
0)]
internal static class Result
{
[
return:
System.
Runtime.
CompilerServices.
Nullable(
new byte[] {
0,
1
})]
public static Result<
T>
Success<[
System.
Runtime.
CompilerServices.
Nullable(
2)]
T>(
T value)
{
return Result<
T>.
Success(
value);
}
[
return:
System.
Runtime.
CompilerServices.
Nullable(
new byte[] {
0,
1
})]
public static Result<
T>
Error<[
System.
Runtime.
CompilerServices.
Nullable(
2)]
T>(
string message)
{
return Result<
T>.
Error(
message);
}
}
}