Closed isaacabraham closed 8 years ago
To create a Result in Chessie, you have to explicitly specify both generic types e.g.: -
Result<MyMessage, string>.Succeed(myMessage)
This could be simplified by having static methods on a non-generic Result class e.g.
Result.Succeed<string>(myMessage)
Closing this - I was talking rubbish. C# can't do this - you still have to specify both type args.
To create a Result in Chessie, you have to explicitly specify both generic types e.g.: -
This could be simplified by having static methods on a non-generic Result class e.g.