C# Class FakeO.String

Generates a string of random characters.
Afficher le fichier Open project: rally25rs/FakeO

Méthodes publiques

Méthode Description
Random ( int length ) : string

Generates a string with a specifies length. Characters will all be printable [A-Za-z]

Random ( string regex ) : string

Generate a string that fits the format of a regex. (Please, keep the regex simple if you don't want this to break)

Private Methods

Méthode Description
RegCh ( System.CharEnumerator charEnum, string regex, string[]>.List parsed ) : void
String ( ) : System

Method Details

Random() public static méthode

Generates a string with a specifies length. Characters will all be printable [A-Za-z]
public static Random ( int length ) : string
length int
Résultat string

Random() public static méthode

Generate a string that fits the format of a regex. (Please, keep the regex simple if you don't want this to break)
public static Random ( string regex ) : string
regex string A regex to use to define the format of the string.
Résultat string