Mercurial > pub > bltoolkit
comparison Source/TypeBuilder/ImplementInterfaceAttribute.cs @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f990fcb411a9 |
---|---|
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 } |