Class PageContext<TObject>
- Namespace
- DynamicData
- Assembly
- DynamicData.dll
Parameters associated with the page operation.
public record PageContext<TObject> : IEquatable<PageContext<TObject>>
Type Parameters
TObject
The type of object.
- Inheritance
-
PageContext<TObject>
- Implements
-
IEquatable<PageContext<TObject>>
Constructors
PageContext(IPageResponse, IComparer<TObject>, SortAndPageOptions)
Parameters associated with the page operation.
public PageContext(IPageResponse Response, IComparer<TObject> Comparer, SortAndPageOptions Options)
Parameters
Response
IPageResponseResponse parameters.
Comparer
IComparer<TObject>The comparer used to order the items.
Options
SortAndPageOptionsThe options used to perform virtualization.
PageContext(PageContext<TObject>)
protected PageContext(PageContext<TObject> original)
Parameters
original
PageContext<TObject>
Properties
Comparer
The comparer used to order the items.
public IComparer<TObject> Comparer { get; init; }
Property Value
- IComparer<TObject>
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Options
The options used to perform virtualization.
public SortAndPageOptions Options { get; init; }
Property Value
Response
Response parameters.
public IPageResponse Response { get; init; }
Property Value
Methods
Deconstruct(out IPageResponse, out IComparer<TObject>, out SortAndPageOptions)
public void Deconstruct(out IPageResponse Response, out IComparer<TObject> Comparer, out SortAndPageOptions Options)
Parameters
Response
IPageResponseComparer
IComparer<TObject>Options
SortAndPageOptions
Equals(PageContext<TObject>?)
public virtual bool Equals(PageContext<TObject>? other)
Parameters
other
PageContext<TObject>
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builder
StringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(PageContext<TObject>?, PageContext<TObject>?)
public static bool operator ==(PageContext<TObject>? left, PageContext<TObject>? right)
Parameters
left
PageContext<TObject>right
PageContext<TObject>
Returns
operator !=(PageContext<TObject>?, PageContext<TObject>?)
public static bool operator !=(PageContext<TObject>? left, PageContext<TObject>? right)
Parameters
left
PageContext<TObject>right
PageContext<TObject>