Exemplo n.º 1
0
 protected void OnReplace(NodeCollection oldCollection, NodeCollection newCollection)
 {
 }
Exemplo n.º 2
0
 public bool ShouldSerialize <T>(NodeCollection <T> c) where T : Node
 {
     return(c.Count > 0);
 }
Exemplo n.º 3
0
 public static bool Matches(NodeCollection lhs, NodeCollection rhs)
 {
     return(lhs == null
                         ? rhs == null
                         : lhs.Matches(rhs));
 }
Exemplo n.º 4
0
 public static ICollection <TValue> GetValues <TNode, TValue>(NodeCollection <TNode> nodes)
     where TNode : LiteralExpression
 {
     return(nodes.Select(node => (TValue)Convert.ChangeType(node.ValueObject, typeof(TValue))).ToList());
 }