BogaNet 1.4.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Properties | List of all members
BogaNet.Util.ShortUID Class Reference

Short Guid implementation with a length of 22 characters (instead 36 of the normal Guid). More...

Public Member Functions

 ShortUID (byte[] data)
 Constructor for a ShortUID with a given byte-array.
 
 ShortUID (string code)
 Constructor for a ShortUID with a given string.
 
 ShortUID ()
 Empty constructor for a new ShortUID.
 
byte[] ToByteArray ()
 Returns the ShortUID as byte-array.
 
Guid ToGuid ()
 Converts the ShortUID to a Guid.
 
override string ToString ()
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static ShortUID NewShortUID ()
 Generates a new ShortUID.
 

Properties

string Code [get, set]
 

Detailed Description

Short Guid implementation with a length of 22 characters (instead 36 of the normal Guid).

Constructor & Destructor Documentation

◆ ShortUID() [1/3]

BogaNet.Util.ShortUID.ShortUID ( byte[] data)

Constructor for a ShortUID with a given byte-array.

Parameters
dataShortUID as byte-array

◆ ShortUID() [2/3]

BogaNet.Util.ShortUID.ShortUID ( string code)

Constructor for a ShortUID with a given string.

Parameters
codeShortUID as string

◆ ShortUID() [3/3]

BogaNet.Util.ShortUID.ShortUID ( )

Empty constructor for a new ShortUID.

Member Function Documentation

◆ Equals()

override bool BogaNet.Util.ShortUID.Equals ( object? obj)

◆ GetHashCode()

override int BogaNet.Util.ShortUID.GetHashCode ( )

◆ NewShortUID()

static ShortUID BogaNet.Util.ShortUID.NewShortUID ( )
static

Generates a new ShortUID.

Returns
New ShortUID

◆ ToByteArray()

byte[] BogaNet.Util.ShortUID.ToByteArray ( )

Returns the ShortUID as byte-array.

Returns
ShortUID as byte-array

◆ ToGuid()

Guid BogaNet.Util.ShortUID.ToGuid ( )

Converts the ShortUID to a Guid.

Returns
Guid-instance

◆ ToString()

override string BogaNet.Util.ShortUID.ToString ( )

Property Documentation

◆ Code

string BogaNet.Util.ShortUID.Code
getset

The documentation for this class was generated from the following file: