Assumes Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Common runtime checks that throw Microsoft.Assumes.InternalErrorException exceptions upon failure.
public ref class Assumes abstract sealed
public static class Assumes
type Assumes = class
Public Class Assumes
- Inheritance
-
Assumes
Methods
Fail(String, Exception) |
Throws an public exception. |
Fail(String) |
Throws an public exception. |
False(Boolean, String, Object) |
Throws an public exception if a condition evaluates to true. |
False(Boolean, String, Object[]) |
Throws an public exception if a condition evaluates to true. |
False(Boolean, String) |
Throws an public exception if a condition evaluates to true. |
False(Boolean, ValidationInterpolatedStringHandlerInvertedCondition) |
Throws an public exception if a condition evaluates to true. |
Is<T>(Object) |
Throws Microsoft.Assumes.InternalErrorException if the specified object is not of a given type. |
NotNull<T>(Nullable<T>) |
Throws Microsoft.Assumes.InternalErrorException if the specified value is null. |
NotNull<T>(T) |
Throws Microsoft.Assumes.InternalErrorException if the specified value is null. |
NotNullOrEmpty(String) |
Throws Microsoft.Assumes.InternalErrorException if the specified value is null or empty. |
NotNullOrEmpty<T>(ICollection<T>) |
Throws Microsoft.Assumes.InternalErrorException if the specified value is null or empty. |
NotNullOrEmpty<T>(IEnumerable<T>) |
Throws Microsoft.Assumes.InternalErrorException if the specified value is null or empty. |
NotReachable() |
Unconditionally throws an Microsoft.Assumes.InternalErrorException. |
NotReachable<T>() |
Unconditionally throws an Microsoft.Assumes.InternalErrorException. |
Null<T>(Nullable<T>) |
Throws Microsoft.Assumes.InternalErrorException if the specified value is not null. |
Null<T>(T) |
Throws Microsoft.Assumes.InternalErrorException if the specified value is not null. |
Present<T>(T) |
Verifies that a value is not null, and throws Microsoft.Assumes.InternalErrorException about a missing service otherwise. |
True(Boolean, String, Object) |
Throws an public exception if a condition evaluates to false. |
True(Boolean, String, Object[]) |
Throws an public exception if a condition evaluates to false. |
True(Boolean, String) |
Throws an public exception if a condition evaluates to false. |
True(Boolean, ValidationInterpolatedStringHandler) |
Throws an public exception if a condition evaluates to false. |