StauffConsulting.Essentials.

Require

C#: 
public sealed abstract class Require :
    object

VB: 
Public NotInheritable MustInherit Class Require
    Inherits Object

Type Ancestry:  Object
+---Require


Wrapper class for static input requirement functions.

Summary Info

Constructor Summary

Field Summary

Property Summary

Method Summary

Condition Throws an assertion if the given condition is false.
Condition Throws an assertion if the given condition is false.
NotNothing Throws an assertion if the given object reference is null.
NotNothing Throws an assertion if the given object reference is null.
NotNull Throws an assertion if the given object reference is null.
NotNull Throws an assertion if the given object reference is null.

Miscellany Summary

Method Details


Condition

C#: 
static Void Condition(bool b)

VB: 
Shared Function Condition(ByVal b As Boolean) As Void

Throws an assertion if the given condition is false.

Parameters

b   The condition.


Condition

C#: 
static Void Condition(bool b,
    string descr)

VB: 
Shared Function Condition(ByVal b As Boolean, ByVal descr As String) As Void

Throws an assertion if the given condition is false.

Parameters

b   The condition.
descr  


NotNothing

C#: 
static Void NotNothing(object obj,
    string why)

VB: 
Shared Function NotNothing(ByVal obj As Object, ByVal why As String) As Void

Throws an assertion if the given object reference is null.

Parameters

obj  
why  


NotNothing

C#: 
static Void NotNothing(object obj)

VB: 
Shared Function NotNothing(ByVal obj As Object) As Void

Throws an assertion if the given object reference is null.

Parameters

obj  


NotNull

C#: 
static Void NotNull(object obj)

VB: 
Shared Function NotNull(ByVal obj As Object) As Void

Throws an assertion if the given object reference is null.

Parameters

obj  


NotNull

C#: 
static Void NotNull(object obj,
    string why)

VB: 
Shared Function NotNull(ByVal obj As Object, ByVal why As String) As Void

Throws an assertion if the given object reference is null.

Parameters

obj  
why  


generated by DocGenDotNet on 18 Nov 2008 6:35:01 PM