22 lines
667 B
C#
22 lines
667 B
C#
|
using System;
|
|||
|
|
|||
|
namespace Swan.Reflection {
|
|||
|
/// <summary>
|
|||
|
/// Represents a generic interface to store getters and setters.
|
|||
|
/// </summary>
|
|||
|
public interface IPropertyProxy {
|
|||
|
/// <summary>
|
|||
|
/// Gets the property value via a stored delegate.
|
|||
|
/// </summary>
|
|||
|
/// <param name="instance">The instance.</param>
|
|||
|
/// <returns>The property value.</returns>
|
|||
|
Object GetValue(Object instance);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Sets the property value via a stored delegate.
|
|||
|
/// </summary>
|
|||
|
/// <param name="instance">The instance.</param>
|
|||
|
/// <param name="value">The value.</param>
|
|||
|
void SetValue(Object instance, Object value);
|
|||
|
}
|
|||
|
}
|