コード例 #1
0
        /// <summary>
        /// Adds a customer to the collection.
        /// </summary>
        /// <param name="customer">The customer to add to the collection.</param>
        public void AddCustomer(Customer customer)
        {
            if (customer == null)
            {
                throw new ArgumentNullException("customer");
            }

            mCustomers.Add(customer);
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CustomerFileLine"/> class with the specified customer.
        /// </summary>
        /// <param name="customer">The customer to which will be represented by this file line.</param>
        public CustomerFileLine(Customer customer)
        {
            if (customer == null)
            {
                throw new ArgumentNullException("customer");
            }

            Customer = customer;
        }