CollectionAdapters Class

Enables collections to be passed between an add-in and its host application.


Namespace:  System.AddIn.Pipeline
Assembly:  System.AddIn (in System.AddIn.dll)

public static class CollectionAdapters

Public methodStatic memberToIList<T>(IListContract<T>)Converts the specified IListContract<T> collection to an IList<T> collection.
Public methodStatic memberToIList<TContract, TView>(IListContract<TContract>, Converter<TContract, TView>, Converter<TView, TContract>)Converts a specified IListContract<T> collection to an IList<T> collection by using converter adapters.
Public methodStatic memberToIListContract<T>(IList<T>)Converts a specified IList<T> collection to an IListContract<T> collection.
Public methodStatic memberToIListContract<TView, TContract>(IList<TView>, Converter<TView, TContract>, Converter<TContract, TView>)Converts a specified IList<T> collection to an IListContract<T> collection by using converter adapters.

This class provides methods that enable an IList<T> collection to be converted to a IListContract<T> collection. The IListContract<T> collection is passed across the isolation boundary and converted back to an IList<T> collection that the add-in or the host application can use.

Objects in collections must be remotable. For more information about the object types that you can pass, see Contracts, Views, and Adapters.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft