ObservableCollectionHelper<TPublicType, TWireType> Constructor (Func<TWireType, TPublicType>, Action<TPublicType, TWireType>, IEqualityComparer<TWireType>)
Initializes a new instance of the ObservableCollectionHelper<TPublicType, TWireType> class with the specified public type builder, the specified update, and the specified comparison object.
Namespace: Microsoft.WindowsServerSolutions.Common.ProviderFramework
Assembly: ProviderFramework (in ProviderFramework.dll)
Syntax
public ObservableCollectionHelper(
Func<TWireType, TPublicType> publicTypeBuilder,
Action<TPublicType, TWireType> update,
IEqualityComparer<TWireType> keyComparer
)
public:
ObservableCollectionHelper(
Func<TWireType, TPublicType>^ publicTypeBuilder,
Action<TPublicType, TWireType>^ update,
IEqualityComparer<TWireType>^ keyComparer
)
Public Sub New (
publicTypeBuilder As Func(Of TWireType, TPublicType),
update As Action(Of TPublicType, TWireType),
keyComparer As IEqualityComparer(Of TWireType)
)
Parameters
publicTypeBuilder
Type: System.Func<TWireType, TPublicType>A function that builds a public type from a wire type.
update
Type: System.Action<TPublicType, TWireType>A function that updates a public type based on a new wire type.
keyComparer
Type: System.Collections.Generic.IEqualityComparer<TWireType>An object that is used to determine the equality of keys.
See Also
ObservableCollectionHelper<TPublicType, TWireType> Overload
ObservableCollectionHelper<TPublicType, TWireType> Class
Microsoft.WindowsServerSolutions.Common.ProviderFramework Namespace
Return to top