Class EnsureExtensions
Represents the ensure extensions.
Inherited Members
Namespace: Platform.Reflection
Assembly: Platform.Reflection.dll
Syntax
public static class EnsureExtensions
Methods
| Improve this Doc View SourceCanBeNumeric<T>(EnsureAlwaysExtensionRoot)
Cans the be numeric using the specified root.
Declaration
public static void CanBeNumeric<T>(this EnsureAlwaysExtensionRoot root)
Parameters
Type | Name | Description |
---|---|---|
EnsureAlwaysExtensionRoot | root | The root.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
CanBeNumeric<T>(EnsureAlwaysExtensionRoot, Func<String>)
Cans the be numeric using the specified root.
Declaration
public static void CanBeNumeric<T>(this EnsureAlwaysExtensionRoot root, Func<string> messageBuilder)
Parameters
Type | Name | Description |
---|---|---|
EnsureAlwaysExtensionRoot | root | The root.
|
Func<String> | messageBuilder | The message builder.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
Exceptions
Type | Condition |
---|---|
NotSupportedException |
|
CanBeNumeric<T>(EnsureAlwaysExtensionRoot, String)
Cans the be numeric using the specified root.
Declaration
public static void CanBeNumeric<T>(this EnsureAlwaysExtensionRoot root, string message)
Parameters
Type | Name | Description |
---|---|---|
EnsureAlwaysExtensionRoot | root | The root.
|
String | message | The message.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
CanBeNumeric<T>(EnsureOnDebugExtensionRoot)
Cans the be numeric using the specified root.
Declaration
[Conditional("DEBUG")]
public static void CanBeNumeric<T>(this EnsureOnDebugExtensionRoot root)
Parameters
Type | Name | Description |
---|---|---|
EnsureOnDebugExtensionRoot | root | The root.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
CanBeNumeric<T>(EnsureOnDebugExtensionRoot, Func<String>)
Cans the be numeric using the specified root.
Declaration
[Conditional("DEBUG")]
public static void CanBeNumeric<T>(this EnsureOnDebugExtensionRoot root, Func<string> messageBuilder)
Parameters
Type | Name | Description |
---|---|---|
EnsureOnDebugExtensionRoot | root | The root.
|
Func<String> | messageBuilder | The message builder.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
CanBeNumeric<T>(EnsureOnDebugExtensionRoot, String)
Cans the be numeric using the specified root.
Declaration
[Conditional("DEBUG")]
public static void CanBeNumeric<T>(this EnsureOnDebugExtensionRoot root, string message)
Parameters
Type | Name | Description |
---|---|---|
EnsureOnDebugExtensionRoot | root | The root.
|
String | message | The message.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsNumeric<T>(EnsureAlwaysExtensionRoot)
Ises the numeric using the specified root.
Declaration
public static void IsNumeric<T>(this EnsureAlwaysExtensionRoot root)
Parameters
Type | Name | Description |
---|---|---|
EnsureAlwaysExtensionRoot | root | The root.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsNumeric<T>(EnsureAlwaysExtensionRoot, Func<String>)
Ises the numeric using the specified root.
Declaration
public static void IsNumeric<T>(this EnsureAlwaysExtensionRoot root, Func<string> messageBuilder)
Parameters
Type | Name | Description |
---|---|---|
EnsureAlwaysExtensionRoot | root | The root.
|
Func<String> | messageBuilder | The message builder.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
Exceptions
Type | Condition |
---|---|
NotSupportedException |
|
IsNumeric<T>(EnsureAlwaysExtensionRoot, String)
Ises the numeric using the specified root.
Declaration
public static void IsNumeric<T>(this EnsureAlwaysExtensionRoot root, string message)
Parameters
Type | Name | Description |
---|---|---|
EnsureAlwaysExtensionRoot | root | The root.
|
String | message | The message.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsNumeric<T>(EnsureOnDebugExtensionRoot)
Ises the numeric using the specified root.
Declaration
[Conditional("DEBUG")]
public static void IsNumeric<T>(this EnsureOnDebugExtensionRoot root)
Parameters
Type | Name | Description |
---|---|---|
EnsureOnDebugExtensionRoot | root | The root.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsNumeric<T>(EnsureOnDebugExtensionRoot, Func<String>)
Ises the numeric using the specified root.
Declaration
[Conditional("DEBUG")]
public static void IsNumeric<T>(this EnsureOnDebugExtensionRoot root, Func<string> messageBuilder)
Parameters
Type | Name | Description |
---|---|---|
EnsureOnDebugExtensionRoot | root | The root.
|
Func<String> | messageBuilder | The message builder.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsNumeric<T>(EnsureOnDebugExtensionRoot, String)
Ises the numeric using the specified root.
Declaration
[Conditional("DEBUG")]
public static void IsNumeric<T>(this EnsureOnDebugExtensionRoot root, string message)
Parameters
Type | Name | Description |
---|---|---|
EnsureOnDebugExtensionRoot | root | The root.
|
String | message | The message.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsSigned<T>(EnsureAlwaysExtensionRoot)
Ises the signed using the specified root.
Declaration
public static void IsSigned<T>(this EnsureAlwaysExtensionRoot root)
Parameters
Type | Name | Description |
---|---|---|
EnsureAlwaysExtensionRoot | root | The root.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsSigned<T>(EnsureAlwaysExtensionRoot, Func<String>)
Ises the signed using the specified root.
Declaration
public static void IsSigned<T>(this EnsureAlwaysExtensionRoot root, Func<string> messageBuilder)
Parameters
Type | Name | Description |
---|---|---|
EnsureAlwaysExtensionRoot | root | The root.
|
Func<String> | messageBuilder | The message builder.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
Exceptions
Type | Condition |
---|---|
NotSupportedException |
|
IsSigned<T>(EnsureAlwaysExtensionRoot, String)
Ises the signed using the specified root.
Declaration
public static void IsSigned<T>(this EnsureAlwaysExtensionRoot root, string message)
Parameters
Type | Name | Description |
---|---|---|
EnsureAlwaysExtensionRoot | root | The root.
|
String | message | The message.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsSigned<T>(EnsureOnDebugExtensionRoot)
Ises the signed using the specified root.
Declaration
[Conditional("DEBUG")]
public static void IsSigned<T>(this EnsureOnDebugExtensionRoot root)
Parameters
Type | Name | Description |
---|---|---|
EnsureOnDebugExtensionRoot | root | The root.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsSigned<T>(EnsureOnDebugExtensionRoot, Func<String>)
Ises the signed using the specified root.
Declaration
[Conditional("DEBUG")]
public static void IsSigned<T>(this EnsureOnDebugExtensionRoot root, Func<string> messageBuilder)
Parameters
Type | Name | Description |
---|---|---|
EnsureOnDebugExtensionRoot | root | The root.
|
Func<String> | messageBuilder | The message builder.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsSigned<T>(EnsureOnDebugExtensionRoot, String)
Ises the signed using the specified root.
Declaration
[Conditional("DEBUG")]
public static void IsSigned<T>(this EnsureOnDebugExtensionRoot root, string message)
Parameters
Type | Name | Description |
---|---|---|
EnsureOnDebugExtensionRoot | root | The root.
|
String | message | The message.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsSignedInteger<T>(EnsureAlwaysExtensionRoot)
Ises the signed integer using the specified root.
Declaration
public static void IsSignedInteger<T>(this EnsureAlwaysExtensionRoot root)
Parameters
Type | Name | Description |
---|---|---|
EnsureAlwaysExtensionRoot | root | The root.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsSignedInteger<T>(EnsureAlwaysExtensionRoot, Func<String>)
Ises the signed integer using the specified root.
Declaration
public static void IsSignedInteger<T>(this EnsureAlwaysExtensionRoot root, Func<string> messageBuilder)
Parameters
Type | Name | Description |
---|---|---|
EnsureAlwaysExtensionRoot | root | The root.
|
Func<String> | messageBuilder | The message builder.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
Exceptions
Type | Condition |
---|---|
NotSupportedException |
|
IsSignedInteger<T>(EnsureAlwaysExtensionRoot, String)
Ises the signed integer using the specified root.
Declaration
public static void IsSignedInteger<T>(this EnsureAlwaysExtensionRoot root, string message)
Parameters
Type | Name | Description |
---|---|---|
EnsureAlwaysExtensionRoot | root | The root.
|
String | message | The message.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsSignedInteger<T>(EnsureOnDebugExtensionRoot)
Ises the signed integer using the specified root.
Declaration
[Conditional("DEBUG")]
public static void IsSignedInteger<T>(this EnsureOnDebugExtensionRoot root)
Parameters
Type | Name | Description |
---|---|---|
EnsureOnDebugExtensionRoot | root | The root.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsSignedInteger<T>(EnsureOnDebugExtensionRoot, Func<String>)
Ises the signed integer using the specified root.
Declaration
[Conditional("DEBUG")]
public static void IsSignedInteger<T>(this EnsureOnDebugExtensionRoot root, Func<string> messageBuilder)
Parameters
Type | Name | Description |
---|---|---|
EnsureOnDebugExtensionRoot | root | The root.
|
Func<String> | messageBuilder | The message builder.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsSignedInteger<T>(EnsureOnDebugExtensionRoot, String)
Ises the signed integer using the specified root.
Declaration
[Conditional("DEBUG")]
public static void IsSignedInteger<T>(this EnsureOnDebugExtensionRoot root, string message)
Parameters
Type | Name | Description |
---|---|---|
EnsureOnDebugExtensionRoot | root | The root.
|
String | message | The message.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsUnsignedInteger<T>(EnsureAlwaysExtensionRoot)
Ises the unsigned integer using the specified root.
Declaration
public static void IsUnsignedInteger<T>(this EnsureAlwaysExtensionRoot root)
Parameters
Type | Name | Description |
---|---|---|
EnsureAlwaysExtensionRoot | root | The root.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsUnsignedInteger<T>(EnsureAlwaysExtensionRoot, Func<String>)
Ises the unsigned integer using the specified root.
Declaration
public static void IsUnsignedInteger<T>(this EnsureAlwaysExtensionRoot root, Func<string> messageBuilder)
Parameters
Type | Name | Description |
---|---|---|
EnsureAlwaysExtensionRoot | root | The root.
|
Func<String> | messageBuilder | The message builder.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
Exceptions
Type | Condition |
---|---|
NotSupportedException |
|
IsUnsignedInteger<T>(EnsureAlwaysExtensionRoot, String)
Ises the unsigned integer using the specified root.
Declaration
public static void IsUnsignedInteger<T>(this EnsureAlwaysExtensionRoot root, string message)
Parameters
Type | Name | Description |
---|---|---|
EnsureAlwaysExtensionRoot | root | The root.
|
String | message | The message.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsUnsignedInteger<T>(EnsureOnDebugExtensionRoot)
Ises the unsigned integer using the specified root.
Declaration
[Conditional("DEBUG")]
public static void IsUnsignedInteger<T>(this EnsureOnDebugExtensionRoot root)
Parameters
Type | Name | Description |
---|---|---|
EnsureOnDebugExtensionRoot | root | The root.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsUnsignedInteger<T>(EnsureOnDebugExtensionRoot, Func<String>)
Ises the unsigned integer using the specified root.
Declaration
[Conditional("DEBUG")]
public static void IsUnsignedInteger<T>(this EnsureOnDebugExtensionRoot root, Func<string> messageBuilder)
Parameters
Type | Name | Description |
---|---|---|
EnsureOnDebugExtensionRoot | root | The root.
|
Func<String> | messageBuilder | The message builder.
|
Type Parameters
Name | Description |
---|---|
T | The .
|
IsUnsignedInteger<T>(EnsureOnDebugExtensionRoot, String)
Ises the unsigned integer using the specified root.
Declaration
[Conditional("DEBUG")]
public static void IsUnsignedInteger<T>(this EnsureOnDebugExtensionRoot root, string message)
Parameters
Type | Name | Description |
---|---|---|
EnsureOnDebugExtensionRoot | root | The root.
|
String | message | The message.
|
Type Parameters
Name | Description |
---|---|
T | The .
|