C# Class InteropApiTests.Any

Generate arbitrary (random) values
Afficher le fichier Open project: ayende/managed-esent Class Usage Examples

Méthodes publiques

Méthode Description
BytesOfLength ( int numBytes ) : byte[]

Gets a random array of bytes of the specified length.

StringOfLength ( int numChars ) : string

Gets a random string of the specified length.

Method Details

BytesOfLength() public static méthode

Gets a random array of bytes of the specified length.
public static BytesOfLength ( int numBytes ) : byte[]
numBytes int Number of bytes to be returned.
Résultat byte[]

StringOfLength() public static méthode

Gets a random string of the specified length.
public static StringOfLength ( int numChars ) : string
numChars int Number of chars to be in the string.
Résultat string