Class ShortGuid
Represents a globally unique identifier (GUID) with a shorter string representation.
[Obsolete("Use Guid.NewGuid instead.")]
public class ShortGuid
- Inheritance
-
objectShortGuid
- Extension Methods
Constructors
ShortGuid(Guid)
Creates a ShortGuid from a Guid.
public ShortGuid(Guid guid)
Parameters
guid
GuidThe Guid to encode.
ShortGuid(string)
Creates a ShortGuid from a base64 encoded string.
public ShortGuid(string value)
Parameters
value
stringThe encoded guid as a base64 string.
Methods
Equals(ShortGuid)
Returns a value indicating whether this instance and a specified object represent the same type and value.
protected bool Equals(ShortGuid other)
Parameters
other
ShortGuidAn object to compare to this instance.
Returns
- bool
Equals(object)
Returns a value indicating whether this instance and a specified object represent the same type and value.
public override bool Equals(object obj)
Parameters
obj
objectAn object to compare to this instance.
Returns
- bool
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
NewGuid()
Initialises a new instance of the ShortGuid class.
public static ShortGuid NewGuid()
Returns
ToString()
Returns the base64 encoded guid as a string.
public override string ToString()
Returns
- string