ReqRest
Show / Hide Table of Contents

Struct NoContent

A special type which is used by to represent an empty HTTP message content, for example when an API returns 204 No Content.

Implements
IEquatable<NoContent>
Namespace: ReqRest.Http
Assembly: ReqRest.dll
Syntax
[Serializable]
public struct NoContent : IEquatable<NoContent>
Remarks

This class is treated with special logic during (de-)serialization and is thus the preferred way for representing an empty HTTP response content within the context of this library.

Methods

Equals(NoContent)

Returns a value indicating whether this NoContent instance equals other.

Declaration
public bool Equals(NoContent other)
Parameters
Type Name Description
NoContent other

The object to be compared with this object.

Returns
Type Description
Boolean

This always returns true.

Equals(Object)

Returns a value indicating whether this object equals obj.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj

The object to be compared with this object.

Returns
Type Description
Boolean

true if obj is of type NoContent; false otherwise.

Overrides
ValueType.Equals(Object)

GetHashCode()

Returns a hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
Int32

A constant hash code.

Overrides
ValueType.GetHashCode()

Operators

Equality(NoContent, NoContent)

Returns a value indicating whether one NoContent instance is equal to another one.

Declaration
public static bool operator ==(NoContent a, NoContent b)
Parameters
Type Name Description
NoContent a

The first instance.

NoContent b

The second instance.

Returns
Type Description
Boolean

This always returns true.

Inequality(NoContent, NoContent)

Returns a value indicating whether one NoContent instance is unequal to another one.

Declaration
public static bool operator !=(NoContent a, NoContent b)
Parameters
Type Name Description
NoContent a

The first instance.

NoContent b

The second instance.

Returns
Type Description
Boolean

This always returns false.

Implements

System.IEquatable<T>
Back to top Copyright © 2019 ReqRest - Generated with DocFX - Material Theme made by Oscar Vásquez - Impressum (Imprint)