C# Class Domain.Core.Infrastructure.StringToGuid

Afficher le fichier Open project: AdrianFreemantle/DDD

Méthodes publiques

Méthode Description
Convert ( string name, System.Guid namespaceId ) : System.Guid

Creates a name-based UUID using the algorithm from RFC 4122 �3.

See Generating a deterministic GUID.

Convert ( string name, System.Guid namespaceId, int version ) : System.Guid

Creates a name-based UUID using the algorithm from RFC 4122 �3.

See Generating a deterministic GUID.

Private Methods

Méthode Description
SwapByteOrder ( byte guid ) : void
SwapBytes ( byte guid, int left, int right ) : void

Method Details

Convert() public static méthode

Creates a name-based UUID using the algorithm from RFC 4122 �3.
public static Convert ( string name, System.Guid namespaceId ) : System.Guid
name string The name (within that namespace).
namespaceId System.Guid The ID of the namespace.
Résultat System.Guid

Convert() public static méthode

Creates a name-based UUID using the algorithm from RFC 4122 �3.
public static Convert ( string name, System.Guid namespaceId, int version ) : System.Guid
name string The name (within that namespace).
namespaceId System.Guid The ID of the namespace.
version int The version number of the UUID to create; this value must be either /// 3 (for MD5 hashing) or 5 (for SHA-1 hashing).
Résultat System.Guid