## ReadOnlyCollectionBase&lt;T&gt; class

Represents a read-only collection of objects.

```csharp
public abstract class ReadOnlyCollectionBase<T> : IList<T>
```

| Parameter | Description |
| --- | --- |
| T | Type of collection items. |

## Properties

| Name | Description |
| --- | --- |
| [Count](../../aspose.tasks/readonlycollectionbase-1/count/) { get; } | Gets the number of objects contained in the object. |
| [Item](../../aspose.tasks/readonlycollectionbase-1/item/) { get; set; } | Returns the element at the specified index. |

## Methods

| Name | Description |
| --- | --- |
| [Add](../../aspose.tasks/readonlycollectionbase-1/add/)(T) | This is the stub implementation of ICollection's Add method, that only throws NotSupportedException |
| [GetEnumerator](../../aspose.tasks/readonlycollectionbase-1/getenumerator/)() | Returns an enumerator for this collection. |
| [ToList](../../aspose.tasks/readonlycollectionbase-1/tolist/)() | Converts the collection to a list of objects. |

### See Also

* namespace [Aspose.Tasks](../../aspose.tasks/)
* assembly [Aspose.Tasks](../../)


