Skip to main content
.NET Framework 4.6.2+

ITypeInfo.CreateMember(String, Type) Method

Dynamically adds a new member to the current type at run time.

Namespace: DevExpress.ExpressApp.DC

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

IMemberInfo CreateMember(
    string memberName,
    Type memberType
)

Parameters

Name Type Description
memberName String

A string that holds the new member’s name.

memberType Type

A Type object that represents the type of the new member.

Returns

Type Description
IMemberInfo

An IMemberInfo object that supplies metadata on the created member.

See Also