Class StringGenerator
Inheritance
StringGenerator
Assembly: RandomGenerator.dll
Syntax
public abstract class StringGenerator
Fields
|
Improve this Doc
View Source
DefaultIncludeLowercase
Declaration
protected bool DefaultIncludeLowercase
Field Value
|
Improve this Doc
View Source
DefaultIncludeNumeric
Declaration
protected bool DefaultIncludeNumeric
Field Value
|
Improve this Doc
View Source
DefaultIncludeSpecial
Declaration
protected bool DefaultIncludeSpecial
Field Value
|
Improve this Doc
View Source
DefaultIncludeUppercase
Declaration
protected bool DefaultIncludeUppercase
Field Value
|
Improve this Doc
View Source
DefaultMaxAttempts
Declaration
protected const int DefaultMaxAttempts = 10000
Field Value
|
Improve this Doc
View Source
LowercaseCharacters
Declaration
protected const string LowercaseCharacters = "abcdefghijklmnopqrstuvwxyz"
Field Value
|
Improve this Doc
View Source
NumericCharacters
Declaration
protected const string NumericCharacters = "0123456789"
Field Value
|
Improve this Doc
View Source
SpecialCharacters
Declaration
protected const string SpecialCharacters = "!#$%&*@\\+_=|`~-^[]{}().,'%:"
Field Value
|
Improve this Doc
View Source
UppercaseCharacters
Declaration
protected const string UppercaseCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
Field Value
|
Improve this Doc
View Source
random
Declaration
protected static readonly Random random
Field Value
Methods
|
Improve this Doc
View Source
BuildCharacterSet(bool, bool, bool, bool)
Declaration
protected virtual ReadOnlySpan<char> BuildCharacterSet(bool includeLowercase, bool includeUppercase, bool includeNumeric, bool includeSpecial)
Parameters
Type |
Name |
Description |
bool |
includeLowercase |
|
bool |
includeUppercase |
|
bool |
includeNumeric |
|
bool |
includeSpecial |
|
Returns
|
Improve this Doc
View Source
Generate(ReadOnlySpan<char>, int)
Declaration
protected string Generate(ReadOnlySpan<char> text, int length)
Parameters
Returns