1 namespace Castle
.DynamicProxy
.Tests
.InterClasses
6 /// Summary description for IMyInterface.
8 public interface IMyInterface2
10 String Name { get; set; }
12 bool Started { get; set; }
14 int Calc(int x
, int y
);
16 int Calc(int x
, int y
, int z
, Single k
);
20 /// Summary description for MyInterfaceImpl.
23 [MyAttribute("MyInterfaceImpl")]
24 public class MyInterfaceImpl
: IMyInterface2
27 private bool _started
;
29 public virtual String Name
32 set { _name = value; }
35 public virtual bool Started
37 get { return _started; }
38 set { _started = value; }
41 [MyAttribute("Calc1")]
42 public virtual int Calc(int x
, int y
)
47 [MyAttribute("Calc2")]
48 public virtual int Calc(int x
, int y
, int z
, Single k
)
50 return x
+ y
+ z
+ (int) k
;
54 public class MyInterfaceImplX
: MyInterfaceImpl
59 [AttributeUsage(AttributeTargets
.Class
| AttributeTargets
.Property
| AttributeTargets
.Method
)]
60 public class MyAttribute
: Attribute
64 public MyAttribute(String name
)