using System;
using System.Collections.Generic;
using System.Text;

namespace Microsoft.Practices.RecipeFramework.Extensions
{
    /// <summary>
    /// Generic EventArgs
    /// </summary>
    /// <typeparam name="T">Any type</typeparam>
    public class EventArgs<T> : EventArgs         
    {
        private T _data;

        /// <summary>
        /// ctor
        /// </summary>
        public EventArgs()
        {
        }

        /// <summary>
        /// ctor with default data
        /// </summary>
        /// <param name="data"></param>
        public EventArgs(T data)
        {
            _data = data;
        }

        /// <summary>
        /// Returns the data
        /// </summary>
        public T Data
        {
            get { return _data; }
            set { _data = value; }
        }
	
    }
}
