0
|
1 using System;
|
|
2 using System.Reflection;
|
|
3
|
|
4 namespace BLToolkit.TypeBuilder.Builders
|
|
5 {
|
|
6 class FakeGetter : FakeMethodInfo
|
|
7 {
|
|
8 public FakeGetter(PropertyInfo propertyInfo)
|
|
9 : base(propertyInfo, propertyInfo.GetSetMethod(true))
|
|
10 {
|
|
11 }
|
|
12
|
|
13 public override ParameterInfo[] GetParameters()
|
|
14 {
|
|
15 return _property.GetIndexParameters();
|
|
16 }
|
|
17
|
|
18 public override string Name
|
|
19 {
|
|
20 get { return "get_" + _property.Name; }
|
|
21 }
|
|
22
|
|
23 public override Type ReturnType
|
|
24 {
|
|
25 get { return _property.PropertyType; }
|
|
26 }
|
|
27 }
|
|
28 }
|