Table of Contents

Class ShortGuid

Namespace
CMS.Tests
Assembly
CMS.Tests.dll

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

[Obsolete("Use Guid.NewGuid instead.")]
public class ShortGuid
Inheritance
object
ShortGuid
Extension Methods

Constructors

ShortGuid(Guid)

Creates a ShortGuid from a Guid.

public ShortGuid(Guid guid)

Parameters

guid Guid

The Guid to encode.

ShortGuid(string)

Creates a ShortGuid from a base64 encoded string.

public ShortGuid(string value)

Parameters

value string

The 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 ShortGuid

An 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 object

An 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

ShortGuid

ToString()

Returns the base64 encoded guid as a string.

public override string ToString()

Returns

string