# IFeatureCollection Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.connections.transport.ifeaturecollection/)

## Get {#get-1-c5489019}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.connections.transport.ifeaturecollection/methods/get-1-c5489019/)

```csharp
public abstract TFeature? Get<TFeature>()
```

Retrieves the requested feature from the collection.

### Returns

The requested feature, or null if it is not present.

## Set(TFeature?) {#set-1-tfeature-nullable-1c99952c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.connections.transport.ifeaturecollection/methods/set-1-tfeature-nullable-1c99952c/)

```csharp
public abstract void Set<TFeature>(TFeature? instance)
```

Sets the given feature in the collection.

### Parameters

- `instance` (`TFeature?`): The feature value.
