ItemChanged method

void ItemChanged(
  1. ComplexProperty complexProperty
)
Item changed. The complex property.

Implementation

void ItemChanged(ComplexProperty complexProperty) {
  TComplexProperty property = complexProperty as TComplexProperty;

  EwsUtilities.Assert(
      property != null,
      "ComplexPropertyCollection.ItemChanged",
      "ComplexPropertyCollection.ItemChanged: the type of the complexProperty argument (${complexProperty.runtimeType}) is not supported.");

  if (!this._addedItems.contains(property)) {
    if (!this._modifiedItems.contains(property)) {
      this._modifiedItems.add(property);
      this.Changed();
    }
  }
}