Show / Hide Table of Contents

Class IDGenerator

Generates pseudo-random IDs.

Inheritance
System.Object
IDGenerator
Implements
IIDGenerator
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ComponentSpace.OpenID.Security
Assembly: ComponentSpace.OpenID.dll
Syntax
public class IDGenerator : IIDGenerator

Methods

Generate(Int32)

Generates a pseudo-random ID.

Declaration
public virtual string Generate(int length = 32)
Parameters
Type Name Description
System.Int32 length

The length of the generated ID.

Returns
Type Description
System.String

The pseudo-random ID.

Implements

IIDGenerator
In This Article
Back to top Copyright © ComponentSpace Pty Ltd 2022. All rights reserved.