The ShortGuid type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
ShortGuid(Guid) |
Creates a ShortGuid from a Guid
| |
ShortGuid(String) |
Creates a ShortGuid from a base64 encoded string
|
Methods
Name | Description | |
---|---|---|
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 ValueType Equals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode |
Returns the HashCode for underlying Guid.
(Overrides ValueType GetHashCode .) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NewGuid |
Initialises a new instance of the ShortGuid class
| |
ToString |
Returns the base64 encoded guid as a string
(Overrides ValueType ToString .) |
Operators
Name | Description | |
---|---|---|
Equality |
Determines if both ShortGuids have the same underlying
Guid value.
| |
(Guid to ShortGuid) |
Implicitly converts the Guid to a ShortGuid
| |
(String to ShortGuid) |
Implicitly converts the string to a ShortGuid
| |
(ShortGuid to String) |
Implicitly converts the ShortGuid to it's string equivilent
| |
(ShortGuid to Guid) |
Implicitly converts the ShortGuid to it's Guid equivilent
| |
Inequality |
Determines if both ShortGuids do not have the
same underlying Guid value.
|
Fields
Name | Description | |
---|---|---|
Empty |
A read-only instance of the ShortGuid class whose value
is guaranteed to be all zeroes.
|
Properties
Name | Description | |
---|---|---|
Guid |
Gets/sets the underlying Guid
| |
Value |
Gets/sets the underlying base64 encoded string
|
See Also