Skip to main content
A newer version of this page is available.

PropertyMetadataBuilderExtensions.NewItemInitializer<T, TKey, TValue, TNewItem>(PropertyMetadataBuilder<T, IDictionary<TKey, TValue>>, Func<ITypeDescriptorContext, IDictionary<TKey, TValue>, KeyValuePair<TKey, TNewItem>>, String) Method

Namespace: DevExpress.Mvvm.DataAnnotations

Assembly: DevExpress.Mvvm.v18.2.dll

Declaration

public static PropertyMetadataBuilder<T, IDictionary<TKey, TValue>> NewItemInitializer<T, TKey, TValue, TNewItem>(
    this PropertyMetadataBuilder<T, IDictionary<TKey, TValue>> builder,
    Func<ITypeDescriptorContext, IDictionary<TKey, TValue>, KeyValuePair<TKey, TNewItem>> createDelegate,
    string name = null
)
    where TNewItem : TValue

Parameters

Name Type
builder PropertyMetadataBuilder<T, IDictionary<TKey, TValue>>
createDelegate Func<ITypeDescriptorContext, IDictionary<TKey, TValue>, KeyValuePair<TKey, TNewItem>>

Optional Parameters

Name Type Default
name String *null*

Type Parameters

Name
T
TKey
TValue
TNewItem

Returns

Type
PropertyMetadataBuilder<T, IDictionary<TKey, TValue>>
See Also