tagname = tag.Groups["tagname"].ToString();
if (!ignoredtags.Contains("<" + tagname))
...
C# On Balance HTML Tags
by Paul Celi,
July 12, 2008 18:09
// ** DO NOT USE ** // THIS IS BAD BROKEN CODE, ONLY DISPLAYED FOR BENCHMARKING PURPOSES! if (!tagpaired[i] && !ignoredtags.Contains(tagname)) ...
var ignoredtags = new List<String> { "p", "img", "br" };
if (!tagpaired[i] && !ignoredtags.Contains(tagname))
...
public static string BalanceTags(string html)
{
MatchCollection tags = _namedtags.Matches(html);
...
HtmlDocument doc = new HtmlDocument(); ...
if (!tagpaired[i] && !ignoredtags.Contains("<" + tagname))
continue;
public static string AsCommaSeparatedValues<T>(this IEnumerable<T> items, Func<T, string> translator)
{
return items.Select(translator).AsCommaSeparatedValues();
...
C# On Traversing a List and colle...
by Wolfbyte,
July 10, 2008 08:22
Curses! I wasn't logged in ...
static void Main(string[] args)
{
...
C# On Traversing a List and colle...
by Mike Minutillo,
July 10, 2008 05:37
I'd consider making it more...
List<Item> items = new List<Item>();
string descriptions = string.Join(",", items.Select(item => item.Description).ToArray());
Declare @Name varchar(128) Declare cCursor Cursor LOCAL FORWARD_ONLY FAST_FORWARD READ_ONLY For Select Name From SysObjects Where XType = 'V' ...
using System; using System.Data.SqlClient; using System.Reflection; ...
C# On TableAdapter and CommandTim...
by volothamp,
July 03, 2008 12:21
Ok, now I see your point.
...

Hi jeff, maybe a stupid que...