using System;
using Microsoft.VisualStudio.Commanding;
namespace Microsoft.VisualStudio.Text.Editor.Commanding
{
///
/// A base class for all editor command arguments.
///
public abstract class EditorCommandArgs : CommandArgs
{
///
/// A subject buffer to execute a command on.
///
public ITextBuffer SubjectBuffer { get; }
///
/// An to execute a command on.
///
public ITextView TextView { get; }
///
/// Creates new instance of the with given
/// and .
///
/// A to execute a command on.
/// A to execute command on.
public EditorCommandArgs(ITextView textView, ITextBuffer subjectBuffer)
{
this.TextView = textView ?? throw new ArgumentNullException(nameof(textView));
this.SubjectBuffer = subjectBuffer ?? throw new ArgumentNullException(nameof(subjectBuffer));
}
}
}