PrimitiveExtensionsEnforce Method (Boolean, String) |
Enforce
Namespace: Bio.UtilAssembly: 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
)
<ExtensionAttribute>
Public Shared Function Enforce (
value As Boolean,
errorMsg As String
) As Boolean
public:
[ExtensionAttribute]
static bool Enforce(
bool value,
String^ errorMsg
)
[<ExtensionAttribute>]
static member Enforce :
value : bool *
errorMsg : string -> bool
Parameters
- value
- Type: SystemBoolean
value - errorMsg
- Type: SystemString
errorMsg
Return Value
Type:
Booleanbool
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