Class PageRequest
- Namespace
- DynamicData
- Assembly
- DynamicData.dll
Represents a new page request.
public sealed class PageRequest : IPageRequest, IEquatable<IPageRequest>
- Inheritance
-
PageRequest
- Implements
Constructors
PageRequest()
Initializes a new instance of the PageRequest class.
public PageRequest()
PageRequest(int, int)
Initializes a new instance of the PageRequest class.
public PageRequest(int page, int size)
Parameters
Fields
Default
The default page request.
public static readonly IPageRequest Default
Field Value
Empty
Represents an empty page.
public static readonly IPageRequest Empty
Field Value
Properties
DefaultComparer
Gets the default comparer.
public static IEqualityComparer<IPageRequest?> DefaultComparer { get; }
Property Value
- IEqualityComparer<IPageRequest>
The default comparer.
Page
Gets the page to move to.
public int Page { get; }
Property Value
Size
Gets the page size.
public int Size { get; }
Property Value
Methods
Equals(IPageRequest?)
public bool Equals(IPageRequest? other)
Parameters
other
IPageRequest
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()