﻿// 
// This file is part of - WebExtras
// Copyright (C) 2016 Mihir Mone
// 
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

using System;

namespace WebExtras.Core
{
  /// <summary>
  ///   String value decider arguments
  /// </summary>
  /// <typeparam name="T">Type of current value</typeparam>
  [Serializable]
  public class StringValueDeciderArgs<T>
  {
    /// <summary>
    ///   Current value
    /// </summary>
    public T Value { get; private set; }

    /// <summary>
    ///   Sender object
    /// </summary>
    public object Sender { get; private set; }

    /// <summary>
    ///   Constructor
    /// </summary>
    /// <param name="value">Current value</param>
    /// <param name="sender">Sender object</param>
    public StringValueDeciderArgs(T value, object sender)
    {
      Value = value;
      Sender = sender;
    }
  }
}