コード例 #1
0
 public void IsRetargeted_is_transparently_detected()
 {
     Assert.True(RetargetAttribute.IsRetargeted(typeof(PHasTransparent)));
 }
コード例 #2
0
 private bool ShouldRetarget(Type instanceType, Delegate action)
 {
     return(action.Target != null &&
            instanceType.IsInstanceOfType(action.Target) &&
            (RetargetAttribute.IsRetargeted(action.GetType()) || DemandRetargetDelegates()));
 }