C# Class Domain.Core.Infrastructure.StringToGuid

Show file Open project: AdrianFreemantle/DDD

Public Methods

Method 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

Method Description
SwapByteOrder ( byte guid ) : void
SwapBytes ( byte guid, int left, int right ) : void

Method Details

Convert() public static method

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.
return System.Guid

Convert() public static method

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).
return System.Guid