Remove use of Linq
This commit is contained in:
parent
730b254f6e
commit
6fe8b41ca4
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace Ooui
|
namespace Ooui
|
||||||
{
|
{
|
||||||
|
@ -28,7 +27,13 @@ namespace Ooui
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual string Text {
|
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 {
|
set {
|
||||||
ReplaceAll (new TextNode (value ?? ""));
|
ReplaceAll (new TextNode (value ?? ""));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Ooui
|
namespace Ooui
|
||||||
|
|
Loading…
Reference in New Issue