コード例 #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="jsonOutputContext">The output context to write to.</param>
        internal ODataJsonSerializer(ODataJsonOutputContext jsonOutputContext)
            : base(jsonOutputContext)
        {
            DebugUtils.CheckNoExternalCallers();
            Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null");

            this.jsonOutputContext = jsonOutputContext;
        }
コード例 #2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="jsonOutputContext">The output context to write to.</param>
        internal ODataJsonSerializer(ODataJsonOutputContext jsonOutputContext)
            : base(jsonOutputContext)
        {
            DebugUtils.CheckNoExternalCallers();
            Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null");

            this.jsonOutputContext = jsonOutputContext;
        }
コード例 #3
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="jsonOutputContext">The output context to write to.</param>
        /// <param name="expectedItemType">The type reference of the expected item type or null if no expected item type exists.</param>
        /// <param name="listener">If not null, the writer will notify the implementer of the interface of relevant state changes in the writer.</param>
        internal ODataJsonCollectionWriter(ODataJsonOutputContext jsonOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener)
            : base(jsonOutputContext, expectedItemType, listener)
        {
            DebugUtils.CheckNoExternalCallers();
            Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null");

            this.jsonOutputContext        = jsonOutputContext;
            this.jsonCollectionSerializer = new ODataJsonCollectionSerializer(this.jsonOutputContext);
        }
コード例 #4
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="jsonOutputContext">The output context to write to.</param>
        /// <param name="functionImport">The function import whose parameters will be written.</param>
        internal ODataJsonParameterWriter(ODataJsonOutputContext jsonOutputContext, IEdmFunctionImport functionImport)
            : base(jsonOutputContext, functionImport)
        {
            DebugUtils.CheckNoExternalCallers();
            Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null");

            this.jsonOutputContext = jsonOutputContext;
            this.jsonPropertyAndValueSerializer = new ODataJsonPropertyAndValueSerializer(this.jsonOutputContext);
        }
コード例 #5
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="jsonOutputContext">The output context to write to.</param>
        /// <param name="functionImport">The function import whose parameters will be written.</param>
        internal ODataJsonParameterWriter(ODataJsonOutputContext jsonOutputContext, IEdmFunctionImport functionImport)
            : base(jsonOutputContext, functionImport)
        {
            DebugUtils.CheckNoExternalCallers();
            Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null");

            this.jsonOutputContext = jsonOutputContext;
            this.jsonPropertyAndValueSerializer = new ODataJsonPropertyAndValueSerializer(this.jsonOutputContext);
        }
コード例 #6
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="jsonOutputContext">The output context to write to.</param>
        /// <param name="expectedItemType">The type reference of the expected item type or null if no expected item type exists.</param>
        /// <param name="listener">If not null, the writer will notify the implementer of the interface of relevant state changes in the writer.</param>
        internal ODataJsonCollectionWriter(ODataJsonOutputContext jsonOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener)
            : base(jsonOutputContext, expectedItemType, listener)
        {
            DebugUtils.CheckNoExternalCallers();
            Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null");

            this.jsonOutputContext = jsonOutputContext;
            this.jsonCollectionSerializer = new ODataJsonCollectionSerializer(this.jsonOutputContext);
        }
コード例 #7
0
        /// <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);
        }
コード例 #8
0
        /// <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);
        }
コード例 #9
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="jsonOutputContext">The output context to write to.</param>
 internal ODataJsonServiceDocumentSerializer(ODataJsonOutputContext jsonOutputContext)
     : base(jsonOutputContext)
 {
     DebugUtils.CheckNoExternalCallers();
 }
コード例 #10
0
 internal ODataJsonCollectionWriter(ODataJsonOutputContext jsonOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener) : base(jsonOutputContext, expectedItemType, listener)
 {
     this.jsonOutputContext = jsonOutputContext;
     this.jsonCollectionSerializer = new ODataJsonCollectionSerializer(this.jsonOutputContext);
 }
コード例 #11
0
 internal ODataJsonEntryAndFeedSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
コード例 #12
0
 internal ODataJsonPropertyAndValueSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
コード例 #13
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="jsonOutputContext">The output context to write to.</param>
 internal ODataJsonServiceDocumentSerializer(ODataJsonOutputContext jsonOutputContext)
     : base(jsonOutputContext)
 {
     DebugUtils.CheckNoExternalCallers();
 }
コード例 #14
0
 internal ODataJsonPropertyAndValueSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
コード例 #15
0
ファイル: ODataJsonWriter.cs プロジェクト: modulexcite/pash-1
 internal ODataJsonWriter(ODataJsonOutputContext jsonOutputContext, bool writingFeed) : base(jsonOutputContext, writingFeed)
 {
     this.jsonOutputContext          = jsonOutputContext;
     this.jsonEntryAndFeedSerializer = new ODataJsonEntryAndFeedSerializer(this.jsonOutputContext);
 }
コード例 #16
0
ファイル: ODataJsonWriter.cs プロジェクト: nickchal/pash
 internal ODataJsonWriter(ODataJsonOutputContext jsonOutputContext, bool writingFeed) : base(jsonOutputContext, writingFeed)
 {
     this.jsonOutputContext = jsonOutputContext;
     this.jsonEntryAndFeedSerializer = new ODataJsonEntryAndFeedSerializer(this.jsonOutputContext);
 }
コード例 #17
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="jsonOutputContext">The output context to write to.</param>
 internal ODataJsonPropertyAndValueSerializer(ODataJsonOutputContext jsonOutputContext)
     : base(jsonOutputContext)
 {
     DebugUtils.CheckNoExternalCallers();
 }
コード例 #18
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="jsonOutputContext">The output context to write to.</param>
 internal ODataJsonEntryAndFeedSerializer(ODataJsonOutputContext jsonOutputContext)
     : base(jsonOutputContext)
 {
     DebugUtils.CheckNoExternalCallers();
 }
コード例 #19
0
 internal ODataJsonEntityReferenceLinkSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
コード例 #20
0
 internal ODataJsonParameterWriter(ODataJsonOutputContext jsonOutputContext, IEdmFunctionImport functionImport) : base(jsonOutputContext, functionImport)
 {
     this.jsonOutputContext = jsonOutputContext;
     this.jsonPropertyAndValueSerializer = new ODataJsonPropertyAndValueSerializer(this.jsonOutputContext);
 }
コード例 #21
0
 internal ODataJsonServiceDocumentSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
コード例 #22
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="jsonOutputContext">The output context to write to.</param>
 internal ODataJsonEntityReferenceLinkSerializer(ODataJsonOutputContext jsonOutputContext)
     : base(jsonOutputContext)
 {
     DebugUtils.CheckNoExternalCallers();
 }
コード例 #23
0
 internal ODataJsonServiceDocumentSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
コード例 #24
0
 internal ODataJsonSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
     this.jsonOutputContext = jsonOutputContext;
 }
コード例 #25
0
 internal ODataJsonCollectionSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
コード例 #26
0
 internal ODataJsonParameterWriter(ODataJsonOutputContext jsonOutputContext, IEdmFunctionImport functionImport) : base(jsonOutputContext, functionImport)
 {
     this.jsonOutputContext = jsonOutputContext;
     this.jsonPropertyAndValueSerializer = new ODataJsonPropertyAndValueSerializer(this.jsonOutputContext);
 }
コード例 #27
0
 internal ODataJsonCollectionWriter(ODataJsonOutputContext jsonOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener) : base(jsonOutputContext, expectedItemType, listener)
 {
     this.jsonOutputContext        = jsonOutputContext;
     this.jsonCollectionSerializer = new ODataJsonCollectionSerializer(this.jsonOutputContext);
 }
コード例 #28
0
 internal ODataJsonEntityReferenceLinkSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
コード例 #29
0
 internal ODataJsonEntryAndFeedSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
コード例 #30
0
ファイル: ODataJsonSerializer.cs プロジェクト: nickchal/pash
 internal ODataJsonSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
     this.jsonOutputContext = jsonOutputContext;
 }
コード例 #31
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="jsonOutputContext">The output context to write to.</param>
 internal ODataJsonPropertyAndValueSerializer(ODataJsonOutputContext jsonOutputContext)
     : base(jsonOutputContext)
 {
     DebugUtils.CheckNoExternalCallers();
 }
コード例 #32
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="jsonOutputContext">The output context to write to.</param>
 internal ODataJsonEntityReferenceLinkSerializer(ODataJsonOutputContext jsonOutputContext)
     : base(jsonOutputContext)
 {
     DebugUtils.CheckNoExternalCallers();
 }