This file contains hidden or 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
| /* | |
| Canonical ASP.NET MVC usage | |
| // site.css | |
| .ajax-progress-show, .ajax-progress-error { display: none; } | |
| // index.cshtml | |
| @Html.Partial("partial",new SampleModel()) | |
| // partial.cshtml |
This file contains hidden or 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 Combinator | |
| { | |
| public static Func<TArgument, TResult> Y<TArgument, TResult>(Func<Func<TArgument, TResult>, Func<TArgument, TResult>> f) | |
| { | |
| Func<TArgument, TResult> g = null; | |
| g = f(a => g(a)); | |
| return g; | |
| } |