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
otherEntity
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
ToString(string?, IFormatProvider?)
public string ToString(string? format, IFormatProvider? formatProvider)
Parameters
formatstringformatProviderIFormatProvider
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
destinationSpan<char>charsWrittenintformatReadOnlySpan<char>providerIFormatProvider
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)