2
C # 'notnull` türünü nulllable yapamaz
Rust's Resultveya Haskell'e benzer bir tür oluşturmaya çalışıyorum Eitherve şu ana kadar aldım: public struct Result<TResult, TError> where TResult : notnull where TError : notnull { private readonly OneOf<TResult, TError> Value; public Result(TResult result) => Value = result; public Result(TError error) => Value = error; public static implicit operator Result<TResult, …