Click or drag to resize
RandomCodeGenerator Methods

The RandomCodeGenerator type exposes the following members.

Methods
  NameDescription
Protected methodCodeIsUnique
Checks if given code is unique - not generated yet and accepted by CodeChecker function.
Public methodGenerateCode
Generates one new unique code. Throws exception when not able to generate unique code within 10 attempts.
Protected methodGetRandomDigit
Returns random digit 0-9.
Protected methodGetRandomChar
Returns random character A-Z.
Protected methodGetRandomNumber
Returns random number from 0 to max (exclusive).
Protected methodGetRandomSymbol
Returns random symbol 0-9 or A-Z.
Protected methodGetSymbolForType
Returns charType. Override this method to add custom character sets.
Protected methodRememberCode
Remembers given code as already generated.
Protected methodTryGenerateCode
Generates one random code.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
See Also