Base class for collection element classes.

Namespace:  C1.LiveLinq.Collections
Assembly:  C1.LiveLinq (in C1.LiveLinq.dll)

Syntax

C#
public class IndexableObject : INotifyPropertyChanged
Visual Basic
Public Class IndexableObject _
	Implements INotifyPropertyChanged

Remarks

Using IndexedCollection<(Of <(<'T>)>)> and other collection classes in LiveLinq to Objects, the element class T must implement the property change notification interface INotifyPropertyChanged. The easiest way to satisfy this requirement is to derive that class from IndexableObject. Then you can use its method OnPropertyChanged(String) to send the required property change notifications. For example, a Customer class can be defined like this:
Copy CodeC#
public class Customer : IndexableObject
{
.....................
    private string _name;
    public string Name
    {
        get { return _name; }
        set
        {
            _name = value;
            OnPropertyChanged("Name");
        }
    }
.....................
}

Inheritance Hierarchy

System..::..Object
  C1.LiveLinq.Collections..::..IndexableObject
    C1.LiveLinq.LiveViews..::..ViewRow

See Also