Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: string GenerateString(int, string)

Declaration

public static string GenerateString(
    int length,
    string takeCharactersFrom = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
)

Summary

Generates a random string of the specified length, taking characters from the specified arsenal of characters.

Parameters

intlength Length of the string to generate.
stringtakeCharactersFrom Arsenal to take random characters from. (Default is upper- and lower-case letters and digits.)