Open this paste on another device
The QR code contains the clean paste URL. It contains no password or delete token.
csharpRead-only
1
public sealed record Result<T>(T? Value, string? Error)
{
public bool IsSuccess => Error is null;
public static Result<T> Success(T value) => new(value, null);
public static Result<T> Failure(string error) => new(default, error);
}
var result = Result<int>.Success(42);
Console.WriteLine(result.IsSuccess ? result.Value : result.Error);
Paste details
- Visibility
- Public
- Size
- 350 bytes
- Protection
- Standard link access
- Retention
- No automatic expiry
Share with confidence
Unlisted links are not searchable, but anyone with the URL can open them. Never paste live credentials or personal data.