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
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 |
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A constant hash code. |
Overrides
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. |