Struct BindingOptions
- Namespace
- DynamicData.Binding
- Assembly
- DynamicData.dll
System wide default values for binding operators.
public struct BindingOptions : IEquatable<BindingOptions>
- Implements
Constructors
BindingOptions(int, bool, bool)
System wide default values for binding operators.
public BindingOptions(int ResetThreshold, bool UseReplaceForUpdates = true, bool ResetOnFirstTimeLoad = true)
Parameters
ResetThreshold
intThe reset threshold ie the number of changes before a reset is fired.
UseReplaceForUpdates
boolWhen possible, should replace be used instead of remove and add.
ResetOnFirstTimeLoad
boolShould a reset be fired for a first time load.This option is due to historic reasons where a reset would be fired for the first time load regardless of the number of changes.
Fields
DefaultResetOnFirstTimeLoad
The system wide factory settings default ResetOnFirstTimeLoad value.
public const bool DefaultResetOnFirstTimeLoad = true
Field Value
DefaultResetThreshold
The system wide factory settings default ResetThreshold.
public const int DefaultResetThreshold = 25
Field Value
DefaultUseReplaceForUpdates
The system wide factory settings default UseReplaceForUpdates value.
public const bool DefaultUseReplaceForUpdates = true
Field Value
Properties
ResetOnFirstTimeLoad
Should a reset be fired for a first time load.This option is due to historic reasons where a reset would be fired for the first time load regardless of the number of changes.
public bool ResetOnFirstTimeLoad { readonly get; set; }
Property Value
ResetThreshold
The reset threshold ie the number of changes before a reset is fired.
public int ResetThreshold { readonly get; set; }
Property Value
UseReplaceForUpdates
When possible, should replace be used instead of remove and add.
public bool UseReplaceForUpdates { readonly get; set; }
Property Value
Methods
Deconstruct(out int, out bool, out bool)
public readonly void Deconstruct(out int ResetThreshold, out bool UseReplaceForUpdates, out bool ResetOnFirstTimeLoad)
Parameters
Equals(BindingOptions)
public readonly bool Equals(BindingOptions other)
Parameters
other
BindingOptions
Returns
Equals(object)
public override readonly bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override readonly int GetHashCode()
Returns
NeverFireReset(bool)
Creates binding options to never fire a reset event.
public static BindingOptions NeverFireReset(bool useReplaceForUpdates = true)
Parameters
useReplaceForUpdates
boolWhen possible, should replace be used instead of remove and add.
Returns
- BindingOptions
The binding options.
ToString()
public override readonly string ToString()
Returns
Operators
operator ==(BindingOptions, BindingOptions)
public static bool operator ==(BindingOptions left, BindingOptions right)
Parameters
left
BindingOptionsright
BindingOptions
Returns
operator !=(BindingOptions, BindingOptions)
public static bool operator !=(BindingOptions left, BindingOptions right)
Parameters
left
BindingOptionsright
BindingOptions