Click or drag to resize

MaybeExtensionsMaybeTValue Method (TValue)

Generates the Maybe monad for the specified value.


Namespace:  TomsToolbox.Core
Assembly:  TomsToolbox.Core (in TomsToolbox.Core.dll) Version:
public static Maybe<TValue> Maybe<TValue>(
	this TValue value
where TValue : class


Type: TValue
The value.


Type Parameters

The type of the value.

Return Value

Type: MaybeTValue
The MaybeTValue(TValue) with the value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also