Example #1
0
 public bool InvokeGetter(InstanceMap instanceMap, ref T returnValue)
 {
     if (getMethod != null)
     {
         returnValue = (T)getMethod.Invoke(instanceMap?.GetLocal(parameter), Array.Empty <object>());
     }
     return(true);
 }
Example #2
0
 public bool InvokeGetter(InstanceMap instanceMap, ref T returnValue)
 {
     if (valueSet)
     {
         return(true);
     }
     returnValue = (T)instanceMap?.GetLocal(parameter);
     return(false);
 }
Example #3
0
 public bool InvokeSetter(InstanceMap instanceMap, T newValue)
 {
     setMethod?.Invoke(instanceMap?.GetLocal(parameter), new object[] { newValue });
     return(true);
 }