Ejemplo n.º 1
0
        private void readJsonEmbeddedData(JToken node, ReadingOptions options)
        {
            EmbeddedData.Clear();
            if (!options.EmbeddedData)
            {
                return;
            }
            JArray embeddedDataArray = node.Value <JArray>("embeddedData");

            if (embeddedDataArray == null)
            {
                return;
            }
            EmbeddedData.Capacity = embeddedDataArray.Count;
            EmbeddedData.AddRange(embeddedDataArray.Values <JObject>().Select(data => new EmbeddedData(data)));
        }