Struct Luid
Implements a locally unique ID.
Implements
System.IComparable
System.Runtime.Serialization.ISerializable
System.ICloneable
Assembly: MediaBrowser.Model.dll
[Serializable]
public struct Luid : IEquatable<Luid>, IComparable, IComparable<Luid>, ISerializable, ICloneable
Constructors
Initializes a new instance of the Luid struct.
Declaration
Parameters
Type |
Name |
Description |
System.Int64 |
value |
The value.
|
Initializes a new instance of the Luid struct.
Declaration
public Luid(string luidString)
Parameters
Type |
Name |
Description |
System.String |
luidString |
The luid string.
|
Properties
Declaration
public static readonly Luid Empty { get; }
Property Value
Type |
Description |
Luid |
The empty Luid.
|
Methods
Creates a new object that is a copy of the current instance.
Declaration
Returns
Type |
Description |
System.Object |
A new object that is a copy of this instance.
|
Declaration
public int CompareTo(Luid value)
Parameters
Type |
Name |
Description |
Luid |
value |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public int CompareTo(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
Type |
Description |
System.Int32 |
|
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(Luid other)
Parameters
Type |
Name |
Description |
Luid |
other |
An object to compare with this object.
|
Returns
Type |
Description |
System.Boolean |
true if the current object is equal to the other parameter; otherwise, false.
|
Determines whether the specified System.Object, is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
The System.Object to compare with this instance.
|
Returns
Type |
Description |
System.Boolean |
true if the specified System.Object is equal to this instance; otherwise, false .
|
Overrides
System.ValueType.Equals(System.Object)
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
|
Overrides
System.ValueType.GetHashCode()
Declaration
public long GetNumericValue()
Returns
Type |
Description |
System.Int64 |
The numeric value.
|
Declaration
public static Luid NewLuid()
Returns
Converts to a short string.
Declaration
public string ToShortString()
Returns
Type |
Description |
System.String |
A System.String that represents this instance.
|
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
A System.String that represents this instance.
|
Overrides
System.ValueType.ToString()
Declaration
public string ToString(bool excludeDots)
Parameters
Type |
Name |
Description |
System.Boolean |
excludeDots |
|
Returns
Type |
Description |
System.String |
A System.String that represents this instance.
|
Declaration
public static bool TryParse(string value, out Luid result)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Luid |
result |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool TryParse(string value, IFormatProvider provider, out Luid result)
Parameters
Type |
Name |
Description |
System.String |
value |
|
System.IFormatProvider |
provider |
|
Luid |
result |
|
Returns
Type |
Description |
System.Boolean |
|
Operators
Declaration
public static bool operator ==(Luid x, Luid y)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static implicit operator Luid(long value)
Parameters
Type |
Name |
Description |
System.Int64 |
value |
|
Returns
Declaration
public static implicit operator Luid(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Declaration
public static bool operator !=(Luid x, Luid y)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Explicit Interface Implementations
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Declaration
[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type |
Name |
Description |
System.Runtime.Serialization.SerializationInfo |
info |
|
System.Runtime.Serialization.StreamingContext |
context |
|
Implements
System.IEquatable<T>
System.IComparable
System.IComparable<T>
System.Runtime.Serialization.ISerializable
System.ICloneable
Extension Methods
See Also
System.IEquatable<T>
System.Runtime.Serialization.ISerializable