/// <summary> /// Constructor. /// </summary> /// <param name="jsonOutputContext">The output context to write to.</param> /// <param name="writingFeed">true if the writer is created for writing a feed; false when it is created for writing an entry.</param> internal ODataJsonWriter(ODataJsonOutputContext jsonOutputContext, bool writingFeed) : base(jsonOutputContext, writingFeed) { DebugUtils.CheckNoExternalCallers(); Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null"); this.jsonOutputContext = jsonOutputContext; this.jsonEntryAndFeedSerializer = new ODataJsonEntryAndFeedSerializer(this.jsonOutputContext); }
internal ODataJsonWriter(ODataJsonOutputContext jsonOutputContext, bool writingFeed) : base(jsonOutputContext, writingFeed) { this.jsonOutputContext = jsonOutputContext; this.jsonEntryAndFeedSerializer = new ODataJsonEntryAndFeedSerializer(this.jsonOutputContext); }