Skip to main content
.NET Framework 4.5.2+

IObjectSpace.CanInstantiate(Type) Method

Indicates whether instances of a particular type can be created.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v22.2.dll

NuGet Package: DevExpress.ExpressApp


bool CanInstantiate(
    Type type


Name Type Description
type Type

An object type for which it must be determined whether its instances can be created.


Type Description

true, if instances of the specified type can be created; otherwise, false.


To determine whether a particular type can be instantiated, use the IEntityStore (Type Info Source) object that must be passed as a parameter in the Object Space’s constructor. To be instantiated, the requested type must be contained in the IEntityStore.RegisteredEntities collection.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CanInstantiate(Type) method.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also