Skip to main content
.NET Framework 4.5.2+

XPCollection(XPBaseCollection) Constructor

Initializes a new instance of the XPCollection<T> class by copying T objects from a specified collection.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public XPCollection(
    XPBaseCollection originalCollection
)

Parameters

Name Type Description
originalCollection XPBaseCollection

An XPBaseCollection from which T objects are copied to the newly created collection.

Remarks

If the XPBaseCollection.LoadingEnabled property is set to true (default value) the collection is populated with T objects when its contents are accessed for the first time (for instance, when the XPBaseCollection.Count property is read).

The newly created collection will use the same session as the originalCollection to load and save T persistent objects.

See Also