Umbraco.Belle.System.ManifestParser.MergeJArrays C# (CSharp) Méthode

MergeJArrays() static private méthode

Merges the donor array values into the receiver array
static private MergeJArrays ( Newtonsoft.Json.Linq.JArray receiver, Newtonsoft.Json.Linq.JArray donor ) : void
receiver Newtonsoft.Json.Linq.JArray
donor Newtonsoft.Json.Linq.JArray
Résultat void
        internal static void MergeJArrays(JArray receiver, JArray donor)
        {
            foreach (var item in donor)
            {
                if (!receiver.Any(x => x.Equals(item)))
                {
                    receiver.Add(item);
                }
            }
        }