Show / Hide Table of Contents

Class CollectionChangedNotificationResult<T>

Denotes the standard implementation of a collection result

Inheritance
object
CollectionChangedNotificationResult<T>
Implements
ICollectionChangedNotificationResult<T>
ICollectionChangedNotificationResult
INotificationResult
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Expressions
Assembly: NMF.Expressions.dll
Syntax
public class CollectionChangedNotificationResult<T> : ICollectionChangedNotificationResult<T>, ICollectionChangedNotificationResult, INotificationResult
Type Parameters
Name Description
T

the type of elements

Properties

| Edit this page View Source

AddedItems

Gets a list of added items

Declaration
public List<T> AddedItems { get; }
Property Value
Type Description
List<T>
| Edit this page View Source

Changed

True, if there were changes, otherwise False

Declaration
public bool Changed { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsReset

True, if the collection was reset, otherwise False

Declaration
public bool IsReset { get; }
Property Value
Type Description
bool
| Edit this page View Source

MovedItems

Gets a list of moved items

Declaration
public List<T> MovedItems { get; }
Property Value
Type Description
List<T>
| Edit this page View Source

NewItemsStartIndex

Gets the first index of new items or -1

Declaration
public int NewItemsStartIndex { get; set; }
Property Value
Type Description
int
| Edit this page View Source

OldItemsStartIndex

Gets the first index of old items or -1

Declaration
public int OldItemsStartIndex { get; set; }
Property Value
Type Description
int
| Edit this page View Source

RemovedItems

Gets a list of removed items

Declaration
public List<T> RemovedItems { get; }
Property Value
Type Description
List<T>
| Edit this page View Source

Source

The source of this result

Declaration
public INotifiable Source { get; }
Property Value
Type Description
INotifiable

Methods

| Edit this page View Source

Create(INotifiable, bool)

Creates a new instance of a collection notification

Declaration
public static CollectionChangedNotificationResult<T> Create(INotifiable source, bool isReset = false)
Parameters
Type Name Description
INotifiable source

the source DDG node

bool isReset

True, if this is a reset, otherwise False

Returns
Type Description
CollectionChangedNotificationResult<T>

A collection notification instance

| Edit this page View Source

FreeReference()

Frees a reference

Declaration
public void FreeReference()
| Edit this page View Source

IncreaseReferences(int)

Increases the reference counter

Declaration
public void IncreaseReferences(int references)
Parameters
Type Name Description
int references

The number of references

| Edit this page View Source

Transfer(ICollectionChangedNotificationResult, INotifiable)

Transfers the provided notification to a new change source

Declaration
public static CollectionChangedNotificationResult<T> Transfer(ICollectionChangedNotificationResult oldResult, INotifiable newSource)
Parameters
Type Name Description
ICollectionChangedNotificationResult oldResult

The old notification

INotifiable newSource

The new change source

Returns
Type Description
CollectionChangedNotificationResult<T>

An updated notification

| Edit this page View Source

TurnIntoReset()

Turns this notification into a reset

Declaration
public void TurnIntoReset()
| Edit this page View Source

UpdateNewStartIndex(int)

Updates the new start index

Declaration
public void UpdateNewStartIndex(int startIndex)
Parameters
Type Name Description
int startIndex

the new start index of new items

| Edit this page View Source

UpdateOldStartIndex(int)

Updates the old start index

Declaration
public void UpdateOldStartIndex(int startIndex)
Parameters
Type Name Description
int startIndex

the new start index of old items

Implements

ICollectionChangedNotificationResult<T>
ICollectionChangedNotificationResult
INotificationResult

Extension Methods

ExpressionExtensions.AsOne<T>(T)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX