I have the following interface
public interface ISelectable { bool Selected {get;set;} }
and impl
public class Selectable:Iselectable { bool Selected {get;set;} }
and my impl for SelectableInterceptor
public void Intercept(IInvocation invocation)
{
if (invocation.Method.DeclaringType.Equals(typeof(ISelectable)))
{
if (invocation.Method.Name.Equals("get_Selected"))
{
invocation.ReturnValue = (bool)invocation.Arguments[0];
}
if ("set_Selected".Equals(invocation.Method.Name))
{
}
}
else
{
invocation.Proceed();
}
}
how to invoke the set method ? Please help