C# Class System.Contract

Mostra file Open project: joeduffy/slice.net Class Usage Examples

Public Methods

Method Description
Abandon ( ) : void
Assert ( bool condition ) : void
Requires ( bool condition ) : void
RequiresInInclusiveRange ( int start, int length ) : void
RequiresInInclusiveRange ( int start, int end, int length ) : void

Private Methods

Method Description
RequiresInRange ( int start, int length ) : void

Method Details

Abandon() public static method

public static Abandon ( ) : void
return void

Assert() public static method

public static Assert ( bool condition ) : void
condition bool
return void

Requires() public static method

public static Requires ( bool condition ) : void
condition bool
return void

RequiresInInclusiveRange() public static method

public static RequiresInInclusiveRange ( int start, int length ) : void
start int
length int
return void

RequiresInInclusiveRange() public static method

public static RequiresInInclusiveRange ( int start, int end, int length ) : void
start int
end int
length int
return void