    

 ## On this page

  

 

 # DesignComparer Class

 Last update: 19.06.2026 

**Namespace:** `Phoenix.Optimization`

## Overview

Class can be used to compare two designs to each other.

## Inheritance

![DesignComparer](/sites/default/files/git_ansys/markdown_3306fa4fe71ffce83fd2860374ec3ee5_automation/class_phoenix_1_1_optimization_1_1_design_comparer.png)

## Declaration

```csharp
class DesignComparer

```

## Description

Class can be used to compare two designs to each other.

## Public Member Functions

TypeNameDescriptionint`Compare (object[] x, object[] y)`Used to perform the comparison between two designs.## Member Function Documentation

### Compare

```csharp
int Compare ( object[] x, object[] y )

```

Used to perform the comparison between two designs.

**Parameters:**

- `x` - First Design to compare.
- `y` - Second Design to compare.

**Returns:**

- A value that indicates the relative order of the objects being compared.

ValueMeaningLess than zeroThis instance precedes obj in the sort order.ZeroThis instance occurs in the same position in the sort order as obj.Greater than zeroThis instance follows obj in the sort order.