-Added Merge to LINQ to JSON

This commit is contained in:
James Newton-King
2014-08-01 21:27:38 +12:00
parent 490895716c
commit 5fc738247f
22 changed files with 796 additions and 4 deletions
+12
View File
@@ -24,6 +24,7 @@
#endregion
using System;
using System.Collections;
using System.Collections.Generic;
using Newtonsoft.Json.Utilities;
using System.Globalization;
@@ -47,6 +48,17 @@ namespace Newtonsoft.Json.Linq
get { return _values; }
}
internal override void MergeItem(object content, JsonMergeSettings settings)
{
JConstructor c = content as JConstructor;
if (c == null)
return;
if (c.Name != null)
Name = c.Name;
MergeEnumerableContent(this, c, settings);
}
/// <summary>
/// Gets or sets the name of this constructor.
/// </summary>