Skip to main content
All docs
V24.1

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

Namespace: DevExpress.Mvvm.DataAnnotations

Assembly: DevExpress.Mvvm.v24.1.dll

NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

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

Parameters

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

Optional Parameters

Name Type Default
name String null
description String null

Type Parameters

Name
T
TKey
TValue
TNewItem

Returns

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