예제 #1
0
        /// <summary>
        /// Deserializes a JSON structure to the public static properties of a type.
        /// </summary>
        /// <typeparam name="T">The type to deserialize.</typeparam>
        /// <param name="json">The JSON representation of the type.</param>
        /// <exception cref="TypeDoesNotContainPropertyException">Optionally thrown during automatic
        /// deserialization when the JSON contains a property which is not defined by the requested
        /// type.</exception>
        public void DeserializeType <T>(JsonValue json)
        {
            var serializer = SerializerFactory.GetTypeSerializer();

            serializer.DeserializeType <T>(json, this);
        }