/// <summary> /// Reserved for internal use. /// </summary> public override bool Equals(BulkEntityIdentifier other) { var otherIdentifier = other as BulkTargetIdentifier; if (otherIdentifier == null) { return(false); } var isNameNotEmpty = !string.IsNullOrEmpty(EntityName) && !string.IsNullOrEmpty(ParentEntityName); return (GetType() == other.GetType() && (EntityId == otherIdentifier.EntityId || (isNameNotEmpty && EntityName == otherIdentifier.EntityName && ParentEntityName == otherIdentifier.ParentEntityName))); }
/// <summary> /// Reserved for internal use. /// </summary> public override bool Equals(BulkEntityIdentifier other) { return (GetType() == other.GetType() && EntityId == ((BulkTargetIdentifier)other).EntityId); }