2013-03-30 22:56:34 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Marr.Data.Reflection
|
|
|
|
|
{
|
|
|
|
|
public interface IReflectionStrategy
|
|
|
|
|
{
|
|
|
|
|
object GetFieldValue(object entity, string fieldName);
|
2013-06-03 05:15:56 +02:00
|
|
|
|
|
|
|
|
|
GetterDelegate BuildGetter(Type type, string memberName);
|
|
|
|
|
SetterDelegate BuildSetter(Type type, string memberName);
|
|
|
|
|
|
2013-03-30 22:56:34 +01:00
|
|
|
|
object CreateInstance(Type type);
|
|
|
|
|
}
|
2013-06-03 05:15:56 +02:00
|
|
|
|
|
|
|
|
|
public delegate void SetterDelegate(object instance, object value);
|
|
|
|
|
public delegate object GetterDelegate(object instance);
|
2013-03-30 22:56:34 +01:00
|
|
|
|
}
|