﻿// Decompiled with JetBrains decompiler
// Type: System.Web.UI.WebControls.MonthChangedEventArgs
// Assembly: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// MVID: 7E68A73E-4066-4F24-AB0A-F147209F50EC
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Web.dll

using System;
using System.Runtime;

namespace System.Web.UI.WebControls
{
  /// <summary>
  /// Provides data for the <see cref="E:System.Web.UI.WebControls.Calendar.VisibleMonthChanged"/> event of a <see cref="T:System.Web.UI.WebControls.Calendar"/> control.
  /// </summary>
  public class MonthChangedEventArgs
  {
    private DateTime newDate;
    private DateTime previousDate;

    /// <summary>
    /// Gets the date that determines the currently displayed month in the <see cref="T:System.Web.UI.WebControls.Calendar"/> control.
    /// </summary>
    /// 
    /// <returns>
    /// The date that determines the month currently displayed by the <see cref="T:System.Web.UI.WebControls.Calendar"/>.
    /// </returns>
    public DateTime NewDate
    {
      [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get
      {
        return this.newDate;
      }
    }

    /// <summary>
    /// Gets the date that determines the previously displayed month in the <see cref="T:System.Web.UI.WebControls.Calendar"/> control.
    /// </summary>
    /// 
    /// <returns>
    /// The date that determines the month previously displayed by the <see cref="T:System.Web.UI.WebControls.Calendar"/>.
    /// </returns>
    public DateTime PreviousDate
    {
      [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get
      {
        return this.previousDate;
      }
    }

    /// <summary>
    /// Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.MonthChangedEventArgs"/> class.
    /// </summary>
    /// <param name="newDate">The date that determines the month currently displayed by the <see cref="T:System.Web.UI.WebControls.Calendar"/>. </param><param name="previousDate">The date that determines the month previously displayed by the <see cref="T:System.Web.UI.WebControls.Calendar"/>. </param>
    [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
    public MonthChangedEventArgs(DateTime newDate, DateTime previousDate)
    {
      this.newDate = newDate;
      this.previousDate = previousDate;
    }
  }
}
