コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="inputStream"></param>
        /// <param name="translationContext"></param>
        /// <param name="deserializationHookStrategy"></param>
        /// <param name="format"></param>
        /// <returns></returns>
        public object Deserialize(Stream inputStream, TranslationContext translationContext, IDeserializationHookStrategy deserializationHookStrategy, Format format)
        {
            PullDeserializer pullDeserializer = PullDeserializer.GetPullDeserializer(this, translationContext,
                                                                                     deserializationHookStrategy, format);

            return(pullDeserializer.Parse(inputStream));
        }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="inputStream"></param>
        /// <param name="format"></param>
        /// <returns></returns>
        public Object Deserialize(Stream inputStream, Format format)
        {
            PullDeserializer pullDeserializer = PullDeserializer.GetPullDeserializer(this, new TranslationContext(),
                                                                                     null, format);

            return(pullDeserializer.Parse(inputStream));
        }