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

namespace FlatRedBallXna
{
    public class EventArgs<T> : EventArgs
    {
        #region Fields
        private T data;
        #endregion

        #region Properties
        /// <summary>
        /// Gets the data that was specified when the EventArgs were constructed
        /// </summary>
        public T Data
        {
            get { return this.data; }
            set { this.data = value; }
        }
        #endregion

        #region Constructors
        /// <summary>
        /// Creates a new instance with the data object specified
        /// </summary>
        /// <param name="data">The data object.</param>
        public EventArgs(T data)
        {
            this.data = data;
        }
        #endregion
    }
}
