Exemplo n.º 1
0
 private static void WriteJsonArrayValue(this JsonWriter jsonWriter, IEnumerable arrayValue, ODataVersion odataVersion)
 {
     jsonWriter.StartArrayScope();
     foreach (object obj2 in arrayValue)
     {
         jsonWriter.WriteJsonValue(obj2, odataVersion);
     }
     jsonWriter.EndArrayScope();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Writes the json array value.
        /// </summary>
        /// <param name="jsonWriter">The <see cref="JsonWriter"/> to write to.</param>
        /// <param name="arrayValue">Writes the json array value to the underlying json writer.</param>
        /// <param name="odataVersion">The OData protocol version to be used for writing payloads.</param>
        private static void WriteJsonArrayValue(this JsonWriter jsonWriter, IEnumerable arrayValue, ODataVersion odataVersion)
        {
            DebugUtils.CheckNoExternalCallers();
            Debug.Assert(arrayValue != null, "arrayValue != null");

            jsonWriter.StartArrayScope();

            foreach (object element in arrayValue)
            {
                jsonWriter.WriteJsonValue(element, odataVersion);
            }

            jsonWriter.EndArrayScope();
        }