Class VirtualContext<TObject>
- Namespace
- DynamicData
- Assembly
- DynamicData.dll
Parameters associated with the virtualize operation.
public record VirtualContext<TObject> : IEquatable<VirtualContext<TObject>>
Type Parameters
TObject
The type of object.
- Inheritance
-
VirtualContext<TObject>
- Implements
-
IEquatable<VirtualContext<TObject>>
Constructors
VirtualContext(IVirtualResponse, IComparer<TObject>, SortAndVirtualizeOptions)
Parameters associated with the virtualize operation.
public VirtualContext(IVirtualResponse Response, IComparer<TObject> Comparer, SortAndVirtualizeOptions Options)
Parameters
Response
IVirtualResponseResponse parameters.
Comparer
IComparer<TObject>The comparer used to order the items.
Options
SortAndVirtualizeOptionsThe options used to perform virtualization.
VirtualContext(VirtualContext<TObject>)
protected VirtualContext(VirtualContext<TObject> original)
Parameters
original
VirtualContext<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 SortAndVirtualizeOptions Options { get; init; }
Property Value
Response
Response parameters.
public IVirtualResponse Response { get; init; }
Property Value
Methods
Deconstruct(out IVirtualResponse, out IComparer<TObject>, out SortAndVirtualizeOptions)
public void Deconstruct(out IVirtualResponse Response, out IComparer<TObject> Comparer, out SortAndVirtualizeOptions Options)
Parameters
Response
IVirtualResponseComparer
IComparer<TObject>Options
SortAndVirtualizeOptions
Equals(VirtualContext<TObject>?)
public virtual bool Equals(VirtualContext<TObject>? other)
Parameters
other
VirtualContext<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 ==(VirtualContext<TObject>?, VirtualContext<TObject>?)
public static bool operator ==(VirtualContext<TObject>? left, VirtualContext<TObject>? right)
Parameters
left
VirtualContext<TObject>right
VirtualContext<TObject>
Returns
operator !=(VirtualContext<TObject>?, VirtualContext<TObject>?)
public static bool operator !=(VirtualContext<TObject>? left, VirtualContext<TObject>? right)
Parameters
left
VirtualContext<TObject>right
VirtualContext<TObject>