Click or drag to resize
PrimitiveExtensionsEnforce Method (Boolean, String)
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 value,
	string errorMsg
)

Parameters

value
Type: SystemBoolean
value
errorMsg
Type: SystemString
errorMsg

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