Functional Programming, Csharp, Programming.
return (false, default); return (true, a / b); } } However, the most flexibility provides a Result class: class Result<T> { public bool IsSuccess { get; } public T Value { get; } public IEnumerable<ErorrCode> Errors { get; } . . . } It can be extended the way you like. Add other properties based on