Click or drag to resize
MayBeExtensionsMaybeT, I Method

Namespace: FlexRule
Assembly: FlexRule.Core.Library (in FlexRule.Core.Library.dll) Version: 0.0.0.0 (0.0.0.0)
Syntax
C#
public static T Maybe<T, I>(
	this I obj,
	Func<I, T> func,
	Object alter = null
)

Parameters

obj
Type: I
func
Type: SystemFuncI, T
alter (Optional)
Type: SystemObject

Type Parameters

T
I

Return Value

Type: T

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