Table of Contents

Class FeatureCollectionExtensions

Namespace
IceRpc.Features
Assembly
IceRpc.dll

Provides extension methods for IFeatureCollection.

public static class FeatureCollectionExtensions
Inheritance
FeatureCollectionExtensions
Inherited Members

Methods

AsReadOnly(IFeatureCollection)

Creates a read-only collection decorator over this feature collection.

public static IFeatureCollection AsReadOnly(this IFeatureCollection features)

Parameters

features IFeatureCollection

This feature collection.

Returns

IFeatureCollection

A new read-only decorator over this feature collection, or the feature collection itself if it's already read-only.

With<T>(IFeatureCollection, T)

Updates this feature collection (if read-write) or creates a new feature collection (if read-only) and sets its T to the provided value.

public static IFeatureCollection With<T>(this IFeatureCollection features, T value)

Parameters

features IFeatureCollection

This feature collection.

value T

The new value.

Returns

IFeatureCollection

The updated feature collection.

Type Parameters

T

The type of the value to set in the feature collection.