Table of Contents

Class SerializerRecord

Namespace
RestSharp.Serializers
Assembly
RestSharp.dll
public record SerializerRecord : IEquatable<SerializerRecord>
Inheritance
SerializerRecord
Implements
Inherited Members

Constructors

SerializerRecord(DataFormat, string[], SupportsContentType, Func<IRestSerializer>)

public SerializerRecord(DataFormat DataFormat, string[] AcceptedContentTypes, SupportsContentType SupportsContentType, Func<IRestSerializer> GetSerializer)

Parameters

DataFormat DataFormat
AcceptedContentTypes string[]
SupportsContentType SupportsContentType
GetSerializer Func<IRestSerializer>

SerializerRecord(SerializerRecord)

protected SerializerRecord(SerializerRecord original)

Parameters

original SerializerRecord

Properties

AcceptedContentTypes

public string[] AcceptedContentTypes { get; init; }

Property Value

string[]

DataFormat

public DataFormat DataFormat { get; init; }

Property Value

DataFormat

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

GetSerializer

public Func<IRestSerializer> GetSerializer { get; init; }

Property Value

Func<IRestSerializer>

SupportsContentType

public SupportsContentType SupportsContentType { get; init; }

Property Value

SupportsContentType

Methods

Deconstruct(out DataFormat, out string[], out SupportsContentType, out Func<IRestSerializer>)

public void Deconstruct(out DataFormat DataFormat, out string[] AcceptedContentTypes, out SupportsContentType SupportsContentType, out Func<IRestSerializer> GetSerializer)

Parameters

DataFormat DataFormat
AcceptedContentTypes string[]
SupportsContentType SupportsContentType
GetSerializer Func<IRestSerializer>

Equals(SerializerRecord?)

public virtual bool Equals(SerializerRecord? other)

Parameters

other SerializerRecord

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(SerializerRecord?, SerializerRecord?)

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

Parameters

left SerializerRecord
right SerializerRecord

Returns

bool

operator !=(SerializerRecord?, SerializerRecord?)

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

Parameters

left SerializerRecord
right SerializerRecord

Returns

bool