Class Entity
- Namespace
- NetCord
- Assembly
- NetCord.dll
public abstract class Entity : IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>
- Inheritance
-
Entity
- Implements
- Derived
- Inherited Members
Constructors
Entity()
protected Entity()
Properties
CreatedAt
The time this object was created.
public DateTimeOffset CreatedAt { get; }
Property Value
Id
The unique identifier for this object.
public abstract ulong Id { get; }
Property Value
Methods
Equals(Entity?)
public bool Equals(Entity? other)
Parameters
other
Entity
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
ToString(string?, IFormatProvider?)
public string ToString(string? format, IFormatProvider? formatProvider)
Parameters
format
stringformatProvider
IFormatProvider
Returns
TryFormat(Span<char>, out int, ReadOnlySpan<char>, IFormatProvider?)
public virtual bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
Parameters
destination
Span<char>charsWritten
intformat
ReadOnlySpan<char>provider
IFormatProvider
Returns
Operators
operator ==(Entity?, Entity?)
public static bool operator ==(Entity? left, Entity? right)
Parameters
Returns
operator !=(Entity?, Entity?)
public static bool operator !=(Entity? left, Entity? right)