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