BrightIdeasSoftware.FastObjectListDataSource.UpdateObject C# (CSharp) Метод

UpdateObject() публичный Метод

Update/replace the nth object with the given object
public UpdateObject ( int index, object modelObject ) : void
index int
modelObject object
Результат void
        public override void UpdateObject(int index, object modelObject) {
            if (index < 0 || index >= this.filteredObjectList.Count)
                return;

            int i = this.fullObjectList.IndexOf(this.filteredObjectList[index]);
            if (i < 0)
                return;

            if (ReferenceEquals(this.fullObjectList[i], modelObject))
                return;

            this.fullObjectList[i] = modelObject;
            this.filteredObjectList[index] = modelObject;
            this.objectsToIndexMap[modelObject] = index;
        }