IsEqualTo static method

bool IsEqualTo(
  1. ExtendedPropertyDefinition extPropDef1,
  2. ExtendedPropertyDefinition extPropDef2
)
Determines whether two specified instances of ExtendedPropertyDefinition are equal. First extended property definition. Second extended property definition.

Implementation

static bool IsEqualTo(ExtendedPropertyDefinition extPropDef1,
    ExtendedPropertyDefinition extPropDef2) {
  return identical(extPropDef1, extPropDef2) ||
      (extPropDef1 != null &&
          extPropDef2 != null &&
          extPropDef1.Id == extPropDef2.Id &&
          extPropDef1.MapiType == extPropDef2.MapiType &&
          extPropDef1.Tag == extPropDef2.Tag &&
          extPropDef1.Name == extPropDef2.Name &&
          extPropDef1.PropertySet == extPropDef2.PropertySet &&
          extPropDef1._propertySetId == extPropDef2._propertySetId);
}