0
|
1 using System;
|
|
2 using System.Diagnostics.CodeAnalysis;
|
|
3
|
|
4 using BLToolkit.TypeBuilder.Builders;
|
|
5
|
|
6 namespace BLToolkit.TypeBuilder
|
|
7 {
|
|
8 [SuppressMessage("Microsoft.Performance", "CA1813:AvoidUnsealedAttributes")]
|
|
9 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true)]
|
|
10 public class ImplementInterfaceAttribute : AbstractTypeBuilderAttribute
|
|
11 {
|
|
12 public ImplementInterfaceAttribute(Type type)
|
|
13 {
|
|
14 _type = type;
|
|
15 }
|
|
16
|
|
17 private readonly Type _type;
|
|
18 public Type Type
|
|
19 {
|
|
20 get { return _type; }
|
|
21 }
|
|
22
|
|
23 public override IAbstractTypeBuilder TypeBuilder
|
|
24 {
|
|
25 get { return new ImplementInterfaceBuilder(_type); }
|
|
26 }
|
|
27 }
|
|
28 }
|