C# Class FakeO.String

Generates a string of random characters.
Show file Open project: rally25rs/FakeO

Public Methods

Method 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

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

Method Details

Random() public static method

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

Random() public static method

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.
return string