Created
November 17, 2009 14:40
-
-
Save jfromaniello/236938 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Calculator | |
{ | |
public bool CanDivide(double left, double right) | |
{ | |
return right != 0; | |
} | |
[Preview("CanDivide")] | |
[AsyncAction(BlockInteraction = true)] | |
public double Divide(double left, double right) | |
{ | |
Thread.Sleep(3000); | |
return left / right; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment