Skip to main content
.NET 6.0+

CreateInstanceAttribute(Type) Constructor

Initializes a new instance of the CreateInstanceAttribute and overrides the return type of the target method.

Namespace: DevExpress.ExpressApp.DC

Assembly: DevExpress.ExpressApp.v23.2.dll

NuGet Package: DevExpress.ExpressApp


public CreateInstanceAttribute(
    Type instanceType


Name Type Description
instanceType Type

A Type object, specifying the type of Domain Component instances that will be created by the CreateInstanceAttribute‘s target method. This parameter value is assigned to the CreateInstanceAttribute.InstanceType property.


This constructor is used to override the type of Domain Component instances created by a method.

public interface IPerson {
    IAddressable Address { get; set; }
    IAddressable CreateAddress();
See Also