Changed the return type of RTE to a different HtmlString (internal) so that it can be implicitly convertible for string for If comparisons. Added an extension method for string.HasValue so that .Where can invoke it to improve readibility when comparing RTE to empty string based on feedback from @cultiv. Cleaned up an empty if in DynamicQuerable

This commit is contained in:
agrath@gmail.com
2011-07-21 20:19:54 -12:00
parent 3737a8cf28
commit 31169380f8
5 changed files with 23 additions and 6 deletions

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
namespace umbraco.MacroEngines
{
public class InternalHtmlString : HtmlString
{
public InternalHtmlString(string s) : base(s) { }
public static implicit operator string(InternalHtmlString s)
{
return s.ToHtmlString();
}
}
}