Click or drag to resize

ShortGuid Structure

Represents a globally unique identifier (GUID) with a shorter string value. Sguid
Inheritance Hierarchy
SystemObject
  SystemValueType
    Casewhere.SystemTypesShortGuid

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

The ShortGuid type exposes the following members.

Constructors
 NameDescription
Public methodShortGuid(Guid) Creates a ShortGuid from a Guid
Public methodShortGuid(String) Creates a ShortGuid from a base64 encoded string
Top
Properties
 NameDescription
Public propertyGuid Gets/sets the underlying Guid
Public propertyValue Gets/sets the underlying base64 encoded string
Top
Methods
 NameDescription
Public methodStatic memberDecode Decodes the given base64 string
Public methodStatic memberEncode(Guid) Encodes the given Guid as a base64 string that is 22 characters long.
Public methodStatic memberEncode(String) Creates a new instance of a Guid using the string value, then returns the base64 encoded version of the Guid.
Public methodEquals Returns a value indicating whether this instance and a specified Object represent the same type and value.
(Overrides ValueTypeEquals(Object))
Public methodGetHashCode Returns the HashCode for underlying Guid.
(Overrides ValueTypeGetHashCode)
Public methodStatic memberNewGuid Initialises a new instance of the ShortGuid class
Public methodToString Returns the base64 encoded guid as a string
(Overrides ValueTypeToString)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(ShortGuid, ShortGuid) Determines if both ShortGuids have the same underlying Guid value.
Public operatorStatic member(Guid to ShortGuid) Implicitly converts the Guid to a ShortGuid
Public operatorStatic member(ShortGuid to Guid) Implicitly converts the ShortGuid to it's Guid equivilent
Public operatorStatic member(ShortGuid to String) Implicitly converts the ShortGuid to it's string equivilent
Public operatorStatic member(String to ShortGuid) Implicitly converts the string to a ShortGuid
Public operatorStatic memberInequality(ShortGuid, ShortGuid) Determines if both ShortGuids do not have the same underlying Guid value.
Top
Fields
 NameDescription
Public fieldStatic memberEmpty A read-only instance of the ShortGuid class whose value is guaranteed to be all zeroes.
Top
See Also