PrimitiveExtensionsEnforce Method (Boolean, String, Object) |
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 condition,
string messageToFormat,
params Object[] formatValues
)
<ExtensionAttribute>
Public Shared Function Enforce (
condition As Boolean,
messageToFormat As String,
ParamArray formatValues As Object()
) As Boolean
public:
[ExtensionAttribute]
static bool Enforce(
bool condition,
String^ messageToFormat,
... array<Object^>^ formatValues
)
[<ExtensionAttribute>]
static member Enforce :
condition : bool *
messageToFormat : string *
formatValues : Object[] -> bool
Parameters
- condition
- Type: SystemBoolean
condition - messageToFormat
- Type: SystemString
messageToFormat - formatValues
- Type: SystemObject
formatValues
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