IdGenerator
Namespace: Babel.Licensing Assembly: Babel.Licensing.dll
A license identifier generator. This class cannot be inherited.
Inheritance
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
IdGenerator(string, int)
Generate a new instance of class specifying the identifier prefix and length.
Parameters
The identifier prefix.
The total identifier string length.
Exceptions
Thrown when the prefix argument is null.
Thrown when the length argument is less or equal to zero.
IdGenerator(string)
Generate a new instance of class specifying the identifier prefix.
Parameters
The identifier prefix.
Examples
IdGenerator()
Generate a new instance of class.
Examples
Properties
Format
Gets or sets the format to use.
Property Value
Length
Gets or sets the identifier length.
Property Value
Exceptions
Thrown when one or more arguments are outside the required range.
Prefix
Gets or sets the identifier prefix.
Property Value
Exceptions
Thrown when one or more required arguments are null.
Methods
Create(string, int)
Creates a new identifier string with given prefix.
Parameters
The identifier prefix.
The total identifier string length.
Returns
A string.
CreateId()
Creates the a new identifier string.
Returns
The new identifier.
Last updated