Click or drag to resize
PrimitiveExtensionsEnforce Method (Boolean, String, Object)
Enforce

Namespace: Bio.Util
Assembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax
public static bool Enforce(
	this bool condition,
	string messageToFormat,
	params Object[] formatValues
)

Parameters

condition
Type: SystemBoolean
condition
messageToFormat
Type: SystemString
messageToFormat
formatValues
Type: SystemObject
formatValues

Return Value

Type: Boolean
bool

Usage Note

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