/// <summary> /// Constructor. /// </summary> /// <param name="jsonLightOutputContext">The output context to write to.</param> internal ODataJsonLightEntityReferenceLinkSerializer(ODataJsonLightOutputContext jsonLightOutputContext) : base(jsonLightOutputContext) { DebugUtils.CheckNoExternalCallers(); // DEVNOTE: grab this early so that any validation errors are thrown at creation time rather than when Write___ is called. this.metadataUriBuilder = jsonLightOutputContext.CreateMetadataUriBuilder(); }
/// <summary> /// Constructor. /// </summary> /// <param name="jsonLightOutputContext">The output context to write to.</param> /// <param name="writingTopLevelCollection">true when writing a top-level collection that requires the 'value' wrapper object; otherwise false.</param> internal ODataJsonLightCollectionSerializer(ODataJsonLightOutputContext jsonLightOutputContext, bool writingTopLevelCollection) : base(jsonLightOutputContext) { DebugUtils.CheckNoExternalCallers(); this.writingTopLevelCollection = writingTopLevelCollection; // DEVNOTE: grab this early so that any validation errors are thrown at creation time rather than when Write___ is called. this.metadataUriBuilder = jsonLightOutputContext.CreateMetadataUriBuilder(); }
/// <summary> /// Constructor. /// </summary> /// <param name="jsonLightOutputContext">The output context to write to.</param> internal ODataJsonLightEntryAndFeedSerializer(ODataJsonLightOutputContext jsonLightOutputContext) : base(jsonLightOutputContext) { DebugUtils.CheckNoExternalCallers(); this.annotationGroups = new Dictionary <string, ODataJsonLightAnnotationGroup>(StringComparer.Ordinal); // DEVNOTE: grab this early so that any validation errors are thrown at creation time rather than when Write___ is called. this.metadataUriBuilder = jsonLightOutputContext.CreateMetadataUriBuilder(); }