C# Класс NStub.CSharp.ObjectGeneration.MemberBuilderDecoratorAttribute

Наследование: System.Attribute
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

MemberBuilderDecoratorAttribute() публичный Метод

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.
Результат System