Show / Hide Table of Contents

Class IdGenerator

Offers some methods to create and handle unique identifiers.

Inheritance
object
IdGenerator
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public static class IdGenerator

Methods

| Edit this page View Source

MakeUnique(string)

Makes the specified id unique based on the calling assembly by adding a counter if needed.

Declaration
public static string MakeUnique(string id)
Parameters
Type Name Description
string id

The id to make unique.

Returns
Type Description
string

The unique id.

| Edit this page View Source

ResetCounter()

Resets the counter used to create unique ids. All previous generated ids are not garantueed to stay unique if this is called!

Declaration
public static void ResetCounter()
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX