Remove use of Linq

This commit is contained in:
Frank A. Krueger 2018-03-02 22:14:22 -08:00
parent 730b254f6e
commit 6fe8b41ca4
No known key found for this signature in database
GPG Key ID: 0471C67474FFE664
2 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,6 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace Ooui
{
@ -28,7 +27,13 @@ namespace Ooui
}
public virtual string Text {
get { return String.Join ("", from c in Children select c.Text); }
get {
var sb = new System.Text.StringBuilder ();
foreach (var c in Children) {
sb.Append (c.Text);
}
return sb.ToString ();
}
set {
ReplaceAll (new TextNode (value ?? ""));
}

View File

@ -1,6 +1,5 @@
using System;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
namespace Ooui