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