Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JsonObjectContract"/> class.
        /// </summary>
        /// <param name="underlyingType">The underlying type for the contract.</param>
        public JsonObjectContract(Type underlyingType)
            : base(underlyingType)
        {
            ContractType = JsonContractType.Object;

            Properties            = new JsonPropertyCollection(UnderlyingType);
            ConstructorParameters = new JsonPropertyCollection(UnderlyingType);
        }