ShortGuid Structure

Represents a globally unique identifier (GUID) with a shorter string value. Sguid

Definition

Namespace: Casewhere.SystemTypes
Assembly: Casewhere.SystemTypes (in Casewhere.SystemTypes.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public struct ShortGuid
Inheritance
Object    ValueType    ShortGuid

Constructors

ShortGuid(Guid) Creates a ShortGuid from a Guid
ShortGuid(String) Creates a ShortGuid from a base64 encoded string

Properties

Guid Gets/sets the underlying Guid
Value Gets/sets the underlying base64 encoded string

Methods

Decode Decodes the given base64 string
Encode(Guid) Encodes the given Guid as a base64 string that is 22 characters long.
Encode(String) Creates a new instance of a Guid using the string value, then returns the base64 encoded version of the Guid.
Equals Returns a value indicating whether this instance and a specified Object represent the same type and value.
(Overrides ValueTypeEquals(Object))
GetHashCode Returns the HashCode for underlying Guid.
(Overrides ValueTypeGetHashCode)
NewGuid Initialises a new instance of the ShortGuid class
ToString Returns the base64 encoded guid as a string
(Overrides ValueTypeToString)

Operators

Equality(ShortGuid, ShortGuid) Determines if both ShortGuids have the same underlying Guid value.
(Guid to ShortGuid) Implicitly converts the Guid to a ShortGuid
(ShortGuid to Guid) Implicitly converts the ShortGuid to it's Guid equivilent
(ShortGuid to String) Implicitly converts the ShortGuid to it's string equivilent
(String to ShortGuid) Implicitly converts the string to a ShortGuid
Inequality(ShortGuid, ShortGuid) Determines if both ShortGuids do not have the same underlying Guid value.

Fields

Empty A read-only instance of the ShortGuid class whose value is guaranteed to be all zeroes.

See Also