Whetstone Class reference
Whetstone Class reference
Whetstone
WhetStone Namespaces
WhetStone.Guard
Guard Class
Guard Methods
CondGet(T) Method
CondMutate(T) Method
CondSet(T) Method
Guard
CondMutate
T
Method
Mutates and
IGuard
T
's value if it is not
.
Namespace:
WhetStone.Guard
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
Copy
public
static
bool
CondMutate
<T>(
this
IGuard
<T>
this
,
Func
<T, T>
val
)
Parameters
this
Type:
WhetStone.Guard
IGuard
T
The
IGuard
T
whose value to mutate.
val
Type:
System
Func
T
,
T
The mutator function for
this
's value, if it exists.
Type Parameters
T
The type of the
IGuard
T
.
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
IGuard
T
. 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
Reference
Guard Class
WhetStone.Guard Namespace