Pond |
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when the contour is null. |
Upsert behavior: If a contour with the same ID already exists, it will be replaced. If no contour with the ID exists, the contour will be added to the collection.
Snapshot pattern integration: This method is essential for the snapshot workflow. Since retrieved contours are independent copies, this method provides the mechanism to update the collection with modified geometry while preserving contour IDs.
Typical Workflow:
1var original = collection[id]; // Get copy 2var modified = new PondContour(newGeometry, id); // Create modified version 3collection.Set(modified); // Update collection