Click or drag to resize

GuardCondSetT Method

Sets an IGuardT's value only if it is not .

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

Parameters

this
Type: WhetStone.GuardIGuardT
The IGuardT whose value to set.
val
Type: T
The value to set the this to, if it is not .

Type Parameters

T
The type of the IGuardT.

Return Value

Type: Boolean
Whether the value was set or not.

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