Click or drag to resize

GuardCondMutateT Method

Namespace:  WhetStone.Guard
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static bool CondMutate<T>(
	this IGuard<T> this,
	Func<T, T> val
)

Parameters

this
Type: WhetStone.GuardIGuardT
The IGuardT whose value to mutate.
val
Type: SystemFuncT, T
The mutator function for this's value, if it exists.

Type Parameters

T
The type of the IGuardT.

Return Value

Type: Boolean
Whether the value was mutated.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IGuardT. 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