/// <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; }
/// <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); }