## BinarySearch(T) {#binarysearch_1}

```csharp
public int BinarySearch(T item)
```

| Parameter | Type | Description |
| --- | --- | --- |
| item | T |  |

### See Also

* class [CollectionBase&lt;T&gt;](../)
* namespace [Aspose.Cells](../../../aspose.cells/)
* assembly [Aspose.Cells](../../../)

---

## BinarySearch(T, IComparer&lt;T&gt;) {#binarysearch_2}

```csharp
public int BinarySearch(T item, IComparer<T> comparer)
```

| Parameter | Type | Description |
| --- | --- | --- |
| item | T |  |
| comparer | IComparer`1 |  |

### See Also

* class [CollectionBase&lt;T&gt;](../)
* namespace [Aspose.Cells](../../../aspose.cells/)
* assembly [Aspose.Cells](../../../)

---

## BinarySearch(int, int, T, IComparer&lt;T&gt;) {#binarysearch}

```csharp
public int BinarySearch(int index, int count, T item, IComparer<T> comparer)
```

| Parameter | Type | Description |
| --- | --- | --- |
| index | Int32 |  |
| count | Int32 |  |
| item | T |  |
| comparer | IComparer`1 |  |

### See Also

* class [CollectionBase&lt;T&gt;](../)
* namespace [Aspose.Cells](../../../aspose.cells/)
* assembly [Aspose.Cells](../../../)


