C# Class NStub.CSharp.ObjectGeneration.MemberBuilderDecoratorAttribute

Inheritance: System.Attribute
Exibir arquivo Open project: Jedzia/NStub

Public Methods

Method Description
MemberBuilderDecoratorAttribute ( Type decoratedType ) : System

Initializes a new instance of the MemberBuilderDecoratorAttribute class, which describes a decorator relationship between IMemberBuilder types.

Pinpoints this type to the specified decoratedType. The decorating type has to implement the IMemberBuilder interface. Further, the constructor of the decorator has to be in the form of

DecoratorType(IMemberBuilder decoratedType, IMemberSetupContext context).

That allows the decorator to intercept the decorated type.

Method Details

MemberBuilderDecoratorAttribute() public method

Initializes a new instance of the MemberBuilderDecoratorAttribute class, which describes a decorator relationship between IMemberBuilder types.
Pinpoints this type to the specified decoratedType. The decorating type has to implement the IMemberBuilder interface. Further, the constructor of the decorator has to be in the form of

DecoratorType(IMemberBuilder decoratedType, IMemberSetupContext context).

That allows the decorator to intercept the decorated type.

public MemberBuilderDecoratorAttribute ( Type decoratedType ) : System
decoratedType System.Type The type of the to intercept with the /// attributed class.
return System