2
C # का 'नॉटनल' प्रकार अशक्त नहीं बनाया जा सकता
मैं रस्ट Resultया हास्केल के समान एक प्रकार बनाने की कोशिश कर रहा हूं Eitherऔर मुझे यह मिल गया है: 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 …