Table of Contents

Class GetOrPostParameter

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

Constructors

GetOrPostParameter(GetOrPostParameter)

protected GetOrPostParameter(GetOrPostParameter original)

Parameters

original GetOrPostParameter

GetOrPostParameter(string, string?, bool)

Instantiates an HTTP parameter instance (QueryString for GET, DELETE, OPTIONS and HEAD; Encoded form for POST and PUT)

public GetOrPostParameter(string name, string? value, bool encode = true)

Parameters

name string

Name of the parameter

value string

Value of the parameter

encode bool

Encode the value or not, default true

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Equals(GetOrPostParameter?)

public virtual bool Equals(GetOrPostParameter? other)

Parameters

other GetOrPostParameter

Returns

bool

Equals(NamedParameter?)

public override sealed bool Equals(NamedParameter? other)

Parameters

other NamedParameter

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 ==(GetOrPostParameter?, GetOrPostParameter?)

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

Parameters

left GetOrPostParameter
right GetOrPostParameter

Returns

bool

operator !=(GetOrPostParameter?, GetOrPostParameter?)

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

Parameters

left GetOrPostParameter
right GetOrPostParameter

Returns

bool