StauffConsulting.Essentials.| C#: |
public sealed abstract class Assert :
object
|
| VB: |
Public NotInheritable MustInherit Class Assert
Inherits Object
|
| Type Ancestry: | Object |
Condition |
Throws an assertion if the given condition is false. |
Condition |
Throws an assertion if the given condition is false. |
MustOverride |
Use this for methods that would normally be abstract, but that can't be made abstract for some reason. |
NotImplemented |
Indicates code that has not been implemented yet. This is intended for unimplemented API's, not user features. |
NotNull |
Throws an assertion if the given object reference is null. |
NotNull |
Throws an assertion if the given object reference is null. |
NotReached |
Indicates code that should never be reached. Use for otherwise dangling else and default clauses. Always throws an assertion. |
NotReached |
Indicates code that should never be reached. Use for otherwise dangling else and default clauses. Always throws an assertion. |
| C#: |
static Void Condition(bool b)
|
| VB: |
Shared Function Condition(ByVal b As Boolean) As Void
|
Parameters
b | The condition. |
| C#: |
static Void Condition(bool b,
string descr)
|
| VB: |
Shared Function Condition(ByVal b As Boolean, ByVal descr As String) As Void
|
Parameters
b | The condition. |
descr |
| C#: |
static Void MustOverride()
|
| VB: |
Shared Function [MustOverride]() As Void
|
| C#: |
static Void NotImplemented()
|
| VB: |
Shared Function NotImplemented() As Void
|
| C#: |
static Void NotNull(object obj,
string why)
|
| VB: |
Shared Function NotNull(ByVal obj As Object, ByVal why As String) As Void
|
Parameters
obj | |
why |
| C#: |
static Void NotNull(object obj)
|
| VB: |
Shared Function NotNull(ByVal obj As Object) As Void
|
Parameters
obj |
| C#: |
static Void NotReached()
|
| VB: |
Shared Function NotReached() As Void
|
| C#: |
static Void NotReached(string why)
|
| VB: |
Shared Function NotReached(ByVal why As String) As Void
|
Parameters
why |