Table of Contents

Class Preference

Namespace
idunno.Bluesky.Actor
Assembly
idunno.Bluesky.dll

Base record for actor preferences.

public record Preference : IEquatable<Preference>

Inheritance

Derived

Implements

Inherited Members

Remarks

Polymorphic serialization for preferences is handled by PreferenceConverter rather than by System.Text.Json.Serialization.JsonPolymorphicAttribute. System.Text.Json discards the $type property of a preference whose discriminator it does not recognize, which loses data when the preference set is written back. The converter maps discriminators itself so unrecognized preferences survive a round trip intact, and a custom converter on a base type cannot be combined with the polymorphism attributes.

Constructors

Preference()

Creates a new instance of idunno.Bluesky.Actor.Preference.

[JsonConstructor]
public Preference()

Preference(Preference)

protected Preference(Preference original)

Parameters

original Preference

Preference()

Creates a new instance of idunno.Bluesky.Actor.Preference.

[JsonConstructor]
public Preference()

Preference(Preference)

protected Preference(Preference original)

Parameters

original Preference

Preference()

Creates a new instance of idunno.Bluesky.Actor.Preference.

[JsonConstructor]
public Preference()

Preference(Preference)

protected Preference(Preference original)

Parameters

original Preference

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

ExtensionData

Json overflow data for properties and elements that cannot be mapped to a strongly typed class.

[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }

Property Value

Dictionary<string, JsonElement>?

ExtensionData

Json overflow data for properties and elements that cannot be mapped to a strongly typed class.

[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }

Property Value

Dictionary<string, JsonElement>?

ExtensionData

Json overflow data for properties and elements that cannot be mapped to a strongly typed class.

[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }

Property Value

Dictionary<string, JsonElement>?

Methods

<Clone>$()

public virtual Preference <Clone>$()

Returns

Preference

<Clone>$()

public virtual Preference <Clone>$()

Returns

Preference

<Clone>$()

public virtual Preference <Clone>$()

Returns

Preference

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Preference?)

public virtual bool Equals(Preference? other)

Parameters

other Preference?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Preference?)

public virtual bool Equals(Preference? other)

Parameters

other Preference?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Preference?)

public virtual bool Equals(Preference? other)

Parameters

other Preference?

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Preference?, Preference?)

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

Parameters

left Preference?
right Preference?

Returns

bool

operator ==(Preference?, Preference?)

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

Parameters

left Preference?
right Preference?

Returns

bool

operator ==(Preference?, Preference?)

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

Parameters

left Preference?
right Preference?

Returns

bool

operator !=(Preference?, Preference?)

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

Parameters

left Preference?
right Preference?

Returns

bool

operator !=(Preference?, Preference?)

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

Parameters

left Preference?
right Preference?

Returns

bool

operator !=(Preference?, Preference?)

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

Parameters

left Preference?
right Preference?

Returns

bool