# Method SymmetricDifference

#### SymmetricDifference(Geometry, Geometry)

Performs the Symmetric difference operation on the two geometries.

##### Declaration

`public static Geometry SymmetricDifference(this Geometry geometry1, Geometry geometry2)`

##### Parameters

Type | Name | Description |
---|---|---|

Geometry | geometry1 | is one of the Geometry instances in the XOR operation. |

Geometry | geometry2 | is one of the Geometry instances in the XOR operation. |

##### Returns

Type | Description |
---|---|

Geometry | Returns the result of the symmetric difference. The result has the higher of dimensions of the two geometries. |

##### Remarks

The "symmetric" difference means that you would be interested in obtaining those parts of the two input geometries that do not overlap.

The following is a visual illustration of two polygon geometries and how the output result would be from the GeometryEngine.SymmetricDifference operation:

If you desire to perform a more atomic-level difference operation where the spatial subtraction of two input geometries might look different if the order of the geometires were switched, consider using the Difference(Geometry, Geometry) method instead.

##### See Also

### Applies to

## Platforms and versions

Target | Versions |
---|---|

.NET Standard 2.0 | 100.3 - 200.4 |

.NET | 100.13 - 200.4 |

.NET Windows | 100.13 - 200.4 |

.NET Android | 200.0 - 200.4 |

.NET iOS | 200.0 - 200.4 |

.NET Framework | 100.0 - 200.4 |

Xamarin.Android | 100.0 - 100.15 |

Xamarin.iOS | 100.0 - 100.15 |

UWP | 100.0 - 200.4 |