Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ODataJsonLightValueSerializer"/> class.
 /// </summary>
 /// <param name="propertySerializer">The property serializer to use when writing complex values.</param>
 internal ODataJsonLightValueSerializer(ODataJsonLightPropertySerializer propertySerializer)
     : base(propertySerializer.JsonLightOutputContext)
 {
     DebugUtils.CheckNoExternalCallers();
     this.propertySerializer = propertySerializer;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Writes an <see cref="ODataProperty"/> as message payload.
        /// </summary>
        /// <param name="property">The property to write.</param>
        private void WritePropertyImplementation(ODataProperty property)
        {
            ODataJsonLightPropertySerializer jsonLightPropertySerializer = new ODataJsonLightPropertySerializer(this);

            jsonLightPropertySerializer.WriteTopLevelProperty(property);
        }