Table of Contents

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

DateTimeOffset

Id

The unique identifier for this object.

public abstract ulong Id { get; }

Property Value

ulong

Methods

Equals(Entity?)

public bool Equals(Entity? other)

Parameters

other Entity

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

ToString(string?, IFormatProvider?)

public string ToString(string? format, IFormatProvider? formatProvider)

Parameters

format string
formatProvider IFormatProvider

Returns

string

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 int
format ReadOnlySpan<char>
provider IFormatProvider

Returns

bool

Operators

operator ==(Entity?, Entity?)

public static bool operator ==(Entity? left, Entity? right)

Parameters

left Entity
right Entity

Returns

bool

operator !=(Entity?, Entity?)

public static bool operator !=(Entity? left, Entity? right)

Parameters

left Entity
right Entity

Returns

bool