C# Class formulate.app.Helpers.GuidHelper

Helps with GUID operations.
ファイルを表示 Open project: rhythmagency/formulate

Public Methods

Method Description
GetGuid ( string value ) : System.Guid

Converts a string GUID to a GUID instance.

This only parses GUIDs in the expected format.

GetString ( System.Guid guid ) : string

Converts a GUID to a string.

This ensures all GUIDs are in the expected format.

GetStrings ( IEnumerable guids ) : string[]

Converts a GUID collection to an array of strings.

This ensures all GUIDs are in the expected format.

Method Details

GetGuid() public static method

Converts a string GUID to a GUID instance.
This only parses GUIDs in the expected format.
public static GetGuid ( string value ) : System.Guid
value string The string GUID.
return System.Guid

GetString() public static method

Converts a GUID to a string.
This ensures all GUIDs are in the expected format.
public static GetString ( System.Guid guid ) : string
guid System.Guid /// The GUID. ///
return string

GetStrings() public static method

Converts a GUID collection to an array of strings.
This ensures all GUIDs are in the expected format.
public static GetStrings ( IEnumerable guids ) : string[]
guids IEnumerable /// The GUID collection. ///
return string[]