comparison Source/Aspects/MixinOverrideAttribute.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
3 namespace BLToolkit.Aspects
4 {
5 /// <summary>
6 /// http://www.bltoolkit.net/Doc/Aspects/index.htm
7 /// </summary>
8 [AttributeUsage(AttributeTargets.Method, AllowMultiple=true)]
9 public class MixinOverrideAttribute : Attribute
10 {
11 public MixinOverrideAttribute(Type targetInterface, string methodName)
12 {
13 _targetInterface = targetInterface;
14 _methodName = methodName;
15 }
16
17 public MixinOverrideAttribute(Type targetInterface)
18 : this(targetInterface, null)
19 {
20 }
21
22 public MixinOverrideAttribute(string methodName)
23 : this(null, methodName)
24 {
25 }
26
27 public MixinOverrideAttribute()
28 {
29 }
30
31 private Type _targetInterface;
32 public Type TargetInterface
33 {
34 get { return _targetInterface; }
35 set { _targetInterface = value; }
36 }
37
38 private string _methodName;
39 public string MethodName
40 {
41 get { return _methodName; }
42 set { _methodName = value; }
43 }
44 }
45 }