All pastes #886624 Raw Edit

Unnamed

public text v1 · immutable
#886624 ·published 2008-01-31 20:24 UTC
rendered paste body
using System;
using System.Collections.Generic;
using System.Text;

namespace SoloMobile.SiteLibrary
{
    [Serializable]
    public class Plan
    {
        private string _name;
        private decimal _price;
        private string _des;

        /// <summary>
        /// Initializes a new instance of the <see cref="Plan"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="price">The price.</param>
        /// <param name="des">The DES.</param>
        public Plan(string name, decimal price, string des)
        {
            _name = name;
            _price = price;
            _des = des;
        }


        /// <summary>
        /// Gets the name.
        /// </summary>
        /// <value>The name.</value>
        public string Name
        {
            get
            {
                return _name + " " + _price.ToString();
            }
        }


        /// <summary>
        /// Gets the price.
        /// </summary>
        /// <value>The price.</value>
        public decimal Price
        {
            get
            {
                return _price;
            }
        }


        /// <summary>
        /// Gets the description.
        /// </summary>
        /// <value>The description.</value>
        public string Description
        {
            get
            {
                return _des;
            }
        }

    }
}