Class GuidUtility
Helper methods for working with Guid.
Inherited Members
Namespace: Estrelica.Utility
Assembly: Estrelica.Utility.dll
Syntax
[DoNotObfuscateType]
public static class GuidUtility
Fields
DefaultNamespace
DnsNamespace
The namespace for fully-qualified domain names (from RFC 4122, Appendix C).
Declaration
public static readonly Guid DnsNamespace
Field Value
Guid |
IsoOidNamespace
The namespace for ISO OIDs (from RFC 4122, Appendix C).
Declaration
public static readonly Guid IsoOidNamespace
Field Value
Guid |
UrlNamespace
The namespace for URLs (from RFC 4122, Appendix C).
Declaration
public static readonly Guid UrlNamespace
Field Value
Guid |
Methods
Create(Guid, string)
Creates a name-based UUID using the algorithm from RFC 4122 §4.3.
Declaration
public static Guid Create(Guid namespaceId, string name)
Parameters
Guid
namespaceId
The ID of the namespace. |
string
name
The name (within that namespace). |
Returns
Guid
A UUID derived from the namespace and name. |
Remarks
Create(Guid, string, int)
Creates a name-based UUID using the algorithm from RFC 4122 §4.3.
Declaration
public static Guid Create(Guid namespaceId, string name, int version)
Parameters
Guid
namespaceId
The ID of the namespace. |
string
name
The name (within that namespace). |
int
version
The version number of the UUID to create; this value must be either 3 (for MD5 hashing) or 5 (for SHA-1 hashing). |
Returns
Guid
A UUID derived from the namespace and name. |