Skip to content

BooleanResult

Kyle Lauffer edited this page Aug 8, 2021 · 1 revision

BooleanResult

Basic Matching on True

var booleanResult = new BooleanResult.True();
var myString = booleanResult.Match(() => "I'll return this value", () => "I won't return this value");

Basic Matching on False

var booleanResult = new BooleanResult.False();
var myString = booleanResult.Match(() => "I won't return this value", () => "I'll return this value");

Clone this wiki locally