-Added Merge to LINQ to JSON
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user