comparison Source/TypeBuilder/Builders/FakeGetter.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.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 }