Skip to main content
.NET 6.0+

BaseObjectSpace.CanInstantiate(Type) Method

Indicates whether instances of a particular type can be created.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v23.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public virtual bool CanInstantiate(
    Type objectType
)

Parameters

Name Type Description
objectType Type

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

Returns

Type Description
Boolean

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

Remarks

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.

See Also