Open sandboxFocus

Property CreationMember

CreationMember

Gets the member that creates a value of the case: the constructor that the compiler synthesizes for a union declaration, the public single-parameter constructor of the attribute form, or the static Create method of the IUnionMembers interface of the attribute form, or of an interface that this interface inherits.

Declaration
IMethodBase CreationMember { get; }
Property Value
Type Description
IMethodBase
Remarks

The member is typed as IMethodBase because it is a constructor for one authoring form and a method for another. A consumer that invokes it tests whether it is an IMethod or an IConstructor, because IMethodBase declares no invoker of its own.