/// <summary>
        /// Initializes a new instance of the <see cref="OpenGraphMenuItemVariation"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="price">The price.</param>
        /// <exception cref="System.ArgumentNullException">name or price is <c>null</c>.</exception>
        public OpenGraphMenuItemVariation(string name, OpenGraphCurrency price)
        {
            if (name == null) { throw new ArgumentNullException("name"); }
            if (price == null) { throw new ArgumentNullException("price"); }

            this.name = name;
            this.price = price;
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OpenGraphMenuItemVariation"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="price">The price.</param>
        /// <exception cref="System.ArgumentNullException">name or price is <c>null</c>.</exception>
        public OpenGraphMenuItemVariation(string name, OpenGraphCurrency price)
        {
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }
            if (price == null)
            {
                throw new ArgumentNullException("price");
            }

            this.name  = name;
            this.price = price;
        }