Table of Contents

Class JsonParameter

Namespace
RestSharp
Assembly
RestSharp.dll
public record JsonParameter : BodyParameter, IEquatable<Parameter>, IEquatable<BodyParameter>, IEquatable<JsonParameter>
Inheritance
JsonParameter
Implements
Inherited Members

Constructors

JsonParameter(JsonParameter)

protected JsonParameter(JsonParameter original)

Parameters

original JsonParameter

JsonParameter(string, object, string)

public JsonParameter(string name, object value, string contentType = "application/json")

Parameters

name string
value object
contentType string

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Equals(BodyParameter?)

public override sealed bool Equals(BodyParameter? other)

Parameters

other BodyParameter

Returns

bool

Equals(JsonParameter?)

public virtual bool Equals(JsonParameter? other)

Parameters

other JsonParameter

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 override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

Return a human-readable representation of this parameter

public override string ToString()

Returns

string

String

Operators

operator ==(JsonParameter?, JsonParameter?)

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

Parameters

left JsonParameter
right JsonParameter

Returns

bool

operator !=(JsonParameter?, JsonParameter?)

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

Parameters

left JsonParameter
right JsonParameter

Returns

bool