Created
June 28, 2011 15:16
-
-
Save jrwren/1051362 to your computer and use it in GitHub Desktop.
not smart I.f so i can => I.f( pred, do)
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 static class I { public static void f(Func<bool> pred, Action a) { if (pred()) a(); } } | |
// so that I can use it like this: | |
dg.CurrentCellChanged += (_, __) => | |
I.f(()=>rowBeingEdited!=null, ()=>rowBeingEdited.EndEdit()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment