An extension method that converts IEnumerable to AttributeValueCollection

Namespace: Contracts.Data
Assembly: Contracts (in Contracts.dll)

<Extension()> _ 
Public Shared Function ToAttributeValueCollection(Of _ 
TSource)( _ 
ByVal source As IEnumerable(Of TSource), _ 
ByVal id_selector As Func(Of TSource, EntityID), _ 
ByVal value_selector As Func(Of TSource, AttributeValue) _ 
) As AttributeValueCollection
This language is not supported or no code example is available.
public static AttributeValueCollection ToAttributeValueCollection<TSource>( 
this IEnumerable<TSource> source, 
Func<TSource, EntityID> id_selector, 
Func<TSource, AttributeValue> value_selector 
)
This language is not supported or no code example is available.
[Extension()] 
generic<typename TSource> 
public:  
static AttributeValueCollection^ ToAttributeValueCollection( 
IEnumerable<TSource^>^ source, 
Func<TSource^, EntityID^>^ id_selector, 
Func<TSource^, AttributeValue^>^ value_selector 
)
This language is not supported or no code example is available.
JScript does not support generic types and methods.
This language is not supported or no code example is available.

Type Parameters

TSource

<default>

Parameters

source
Type: IEnumerable<TSource>

<default>

id_selector
Type: Func<TSource, EntityID>

<default>

value_selector
Type: Func<TSource, AttributeValue>

<default>

Return Value

Type: AttributeValueCollection

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1