ninject/ninject.extensions.interception — Issue #6: InterceptAttributeBase should be allowed for Property
Author: ManfredLange
Created: 2011-12-28 21:21:49+00:00
State: open

I'm trying to apply an aspect to a property. Unfortunately InterceptAttributeBase lists only class and method as targets.

I have locally added property as an addtional target as follows:

```csharp
[AttributeUsage( AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Property, AllowMultiple = true, Inherited = true )]
public abstract class InterceptAttributeBase : Attribute
{
// ... remainder of implementation left out
```

With this change interception based on attributes now also works for properties which is not surprising as the class DynamicFactoryMethod has already members for creating property getters and setters.

Can I ask this suggested change to be considered for inclusion into the code base?