C# Class PEAPI.BoundArray

Multi dimensional array with explicit bounds
Inheritance: Array
显示文件 Open project: kumpera/mono Class Usage Examples

Public Methods

Method Description
BoundArray ( Type elementType, uint dimensions ) : System

Create a new multi dimensional array type eg. elemType[,,] would be new BoundArray(elemType,3)

BoundArray ( Type elementType, uint dimensions, int size ) : System

Create a new multi dimensional array type eg. elemType[5,10,20] would be new BoundArray(elemType,3,[5,10,20])

BoundArray ( Type elementType, uint dimensions, int loBounds, int sizes ) : System

Create a new multi dimensional array type eg. elemType[1..5,3..10,5,,] would be new BoundArray(elemType,5,[1,3,0],[5,10,4])

Private Methods

Method Description
CompressSignedNum ( int val, MemoryStream str ) : void
TypeSig ( MemoryStream str ) : void

Method Details

BoundArray() public method

Create a new multi dimensional array type eg. elemType[,,] would be new BoundArray(elemType,3)
public BoundArray ( Type elementType, uint dimensions ) : System
elementType Type the type of the elements
dimensions uint the number of dimensions
return System

BoundArray() public method

Create a new multi dimensional array type eg. elemType[5,10,20] would be new BoundArray(elemType,3,[5,10,20])
public BoundArray ( Type elementType, uint dimensions, int size ) : System
elementType Type the type of the elements
dimensions uint the number of dimensions
size int the sizes of the dimensions
return System

BoundArray() public method

Create a new multi dimensional array type eg. elemType[1..5,3..10,5,,] would be new BoundArray(elemType,5,[1,3,0],[5,10,4])
public BoundArray ( Type elementType, uint dimensions, int loBounds, int sizes ) : System
elementType Type the type of the elements
dimensions uint the number of dimensions
loBounds int lower bounds of dimensions
sizes int sizes for the dimensions
return System