Class IdGenerator
Offers some methods to create and handle unique identifiers.
Inherited Members
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public static class IdGenerator
Methods
| Edit this page View SourceMakeUnique(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. |
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()