Forked from JustLikeIcarus/HtmlHelpersIfExtension.cs
Last active
August 29, 2015 14:10
-
-
Save jredh/2aca809280a3552e733a 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
namespace System.Web.Mvc | |
{ | |
public static class HelperExtensions | |
{ | |
public static MvcHtmlString If(this MvcHtmlString value, bool evaluation) | |
{ | |
return evaluation ? value : MvcHtmlString.Empty; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment