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

PropertyMetadataBuilderExtensions.NewItemInitializer<T, TItem, TValue>(PropertyMetadataBuilder<T, ICollection<TItem>>, Func<TValue>, String) Method

Creates a new item initializer.

Namespace: DevExpress.Mvvm.DataAnnotations

Assembly: DevExpress.Mvvm.v18.2.dll

Declaration

public static PropertyMetadataBuilder<T, ICollection<TItem>> NewItemInitializer<T, TItem, TValue>(
    this PropertyMetadataBuilder<T, ICollection<TItem>> builder,
    Func<TValue> createDelegate,
    string name = null
)

Parameters

Name Type Description
builder PropertyMetadataBuilder<T, ICollection<TItem>>

A property metadata builder instance.

createDelegate Func<TValue>

A function that creates a delegate of the specified type.

Optional Parameters

Name Type Default Description
name String *null*

An item name.

Type Parameters

Name
T
TItem
TValue

Returns

Type Description
PropertyMetadataBuilder<T, ICollection<TItem>>

The property metadata builder instance.

See Also