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