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
originalPreference
Preference()
Creates a new instance of idunno.Bluesky.Actor.Preference.
[JsonConstructor]
public Preference()Preference(Preference)
protected Preference(Preference original)Parameters
originalPreference
Preference()
Creates a new instance of idunno.Bluesky.Actor.Preference.
[JsonConstructor]
public Preference()Preference(Preference)
protected Preference(Preference original)Parameters
originalPreference
Properties
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
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
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
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
Methods
<Clone>$()
public virtual Preference <Clone>$()Returns
<Clone>$()
public virtual Preference <Clone>$()Returns
<Clone>$()
public virtual Preference <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Preference?)
public virtual bool Equals(Preference? other)Parameters
otherPreference?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Preference?)
public virtual bool Equals(Preference? other)Parameters
otherPreference?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Preference?)
public virtual bool Equals(Preference? other)Parameters
otherPreference?
Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(Preference?, Preference?)
public static bool operator ==(Preference? left, Preference? right)Parameters
leftPreference?rightPreference?
Returns
operator ==(Preference?, Preference?)
public static bool operator ==(Preference? left, Preference? right)Parameters
leftPreference?rightPreference?
Returns
operator ==(Preference?, Preference?)
public static bool operator ==(Preference? left, Preference? right)Parameters
leftPreference?rightPreference?
Returns
operator !=(Preference?, Preference?)
public static bool operator !=(Preference? left, Preference? right)Parameters
leftPreference?rightPreference?
Returns
operator !=(Preference?, Preference?)
public static bool operator !=(Preference? left, Preference? right)Parameters
leftPreference?rightPreference?
Returns
operator !=(Preference?, Preference?)
public static bool operator !=(Preference? left, Preference? right)Parameters
leftPreference?rightPreference?