Click or drag to resize

MaybeExtensionsMaybeTValue Method (TValue)

Generates the Maybe monad for the specified value.

[NotNull]

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

Parameters

value
Type: TValue
The value.

[CanBeNull]

Type Parameters

TValue
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