CreateInstanceAttribute(Type) Constructor
In This Article
Initializes a new instance of the CreateInstanceAttribute and overrides the return type of the target method.
Namespace: DevExpress.ExpressApp.DC
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
instance |
Type | A Type object, specifying the type of Domain Component instances that will be created by the Create |
#Remarks
This constructor is used to override the type of Domain Component instances created by a method.
[DomainComponent]
public interface IPerson {
IAddressable Address { get; set; }
[CreateInstance(typeof(IAddressableExtended))]
IAddressable CreateAddress();
}
See Also