Show / Hide Table of Contents

Class StringGenerator

Inheritance
object
StringGenerator
RandomPasswordGenerator
RandomStringGenerator
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RandomGenerator
Assembly: RandomGenerator.dll
Syntax
public abstract class StringGenerator

Fields

| Improve this Doc View Source

DefaultIncludeLowercase

Declaration
protected bool DefaultIncludeLowercase
Field Value
Type Description
bool
| Improve this Doc View Source

DefaultIncludeNumeric

Declaration
protected bool DefaultIncludeNumeric
Field Value
Type Description
bool
| Improve this Doc View Source

DefaultIncludeSpecial

Declaration
protected bool DefaultIncludeSpecial
Field Value
Type Description
bool
| Improve this Doc View Source

DefaultIncludeUppercase

Declaration
protected bool DefaultIncludeUppercase
Field Value
Type Description
bool
| Improve this Doc View Source

DefaultMaxAttempts

Declaration
protected const int DefaultMaxAttempts = 10000
Field Value
Type Description
int
| Improve this Doc View Source

LowercaseCharacters

Declaration
protected const string LowercaseCharacters = "abcdefghijklmnopqrstuvwxyz"
Field Value
Type Description
string
| Improve this Doc View Source

NumericCharacters

Declaration
protected const string NumericCharacters = "0123456789"
Field Value
Type Description
string
| Improve this Doc View Source

SpecialCharacters

Declaration
protected const string SpecialCharacters = "!#$%&*@\\+_=|`~-^[]{}().,'%:"
Field Value
Type Description
string
| Improve this Doc View Source

UppercaseCharacters

Declaration
protected const string UppercaseCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
Field Value
Type Description
string
| Improve this Doc View Source

random

Declaration
protected static readonly Random random
Field Value
Type Description
Random

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
Type Description
ReadOnlySpan<char>
| Improve this Doc View Source

Generate(ReadOnlySpan<char>, int)

Declaration
protected string Generate(ReadOnlySpan<char> text, int length)
Parameters
Type Name Description
ReadOnlySpan<char> text
int length
Returns
Type Description
string
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX