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

XPCollection() Constructor

Initializes a new instance of the XPCollection<T> class with the default Session.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v18.2.dll

Declaration

public XPCollection()

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 default session (Session.DefaultSession), to load and save T persistent objects.

See Also