/// <summary> /// Initializes static members of the StringGenerators class. /// </summary> static StringGenerators() { // alphabet-based generators Chinese = ResourceAlphabetGenerator("Chinese"); ChineseTraditional = ResourceAlphabetGenerator("ChineseTraditional"); Cyrillic = ResourceAlphabetGenerator("Cyrillic"); English = ResourceAnsiAlphabetGenerator("English"); German = ResourceAlphabetGenerator("German"); Greek = ResourceAlphabetGenerator("Greek"); Hebrew = ResourceAlphabetGenerator("Hebrew"); Hindi = ResourceAlphabetGenerator("Hindi"); Japanese = ResourceAlphabetGenerator("Japanese"); Korean = ResourceAlphabetGenerator("Korean"); Latin = ResourceAlphabetGenerator("Latin"); Mongolian = ResourceAlphabetGenerator("Mongolian"); NumbersOnly = ResourceAlphabetGenerator("NumbersOnly"); Semigraphics = ResourceAlphabetGenerator("Semigraphics"); SurrogateCharacters = ResourceAlphabetGenerator("SurrogateCharacters"); Thai = ResourceAlphabetGenerator("Thai"); Turkish = ResourceAlphabetGenerator("Turkish"); // word list-based generators SqlInjections = ResourceWordListGenerator("SqlInjections"); // custom generators ApiWords = new ApiWordsAnsiStringGenerator(typeof(string).GetAssembly()); }
/// <summary> /// Initializes static members of the StringGenerators class. /// </summary> static StringGenerators() { // alphabet-based generators Chinese = ResourceAlphabetGenerator("Chinese"); ChineseTraditional = ResourceAlphabetGenerator("ChineseTraditional"); Cyrillic = ResourceAlphabetGenerator("Cyrillic"); English = ResourceAnsiAlphabetGenerator("English"); German = ResourceAlphabetGenerator("German"); Greek = ResourceAlphabetGenerator("Greek"); Hebrew = ResourceAlphabetGenerator("Hebrew"); Hindi = ResourceAlphabetGenerator("Hindi"); Japanese = ResourceAlphabetGenerator("Japanese"); Korean = ResourceAlphabetGenerator("Korean"); Latin = ResourceAlphabetGenerator("Latin"); Mongolian = ResourceAlphabetGenerator("Mongolian"); NumbersOnly = ResourceAlphabetGenerator("NumbersOnly"); Semigraphics = ResourceAlphabetGenerator("Semigraphics"); SurrogateCharacters = ResourceAlphabetGenerator("SurrogateCharacters"); Thai = ResourceAlphabetGenerator("Thai"); Turkish = ResourceAlphabetGenerator("Turkish"); // word list-based generators SqlInjections = ResourceWordListGenerator("SqlInjections"); // custom generators ApiWords = new ApiWordsAnsiStringGenerator(typeof(string).GetAssembly()); }