AvalonStudio.Shell.Commands.CommentCommandDefinition.CommentCommandDefinition C# (CSharp) Method

CommentCommandDefinition() public method

public CommentCommandDefinition ( ) : System
return System
		public CommentCommandDefinition()
		{
			_command = ReactiveCommand.Create();

			_command.Subscribe(_ =>
			{
				var shell = IoC.Get<IShell>();

				(shell.SelectedDocument as EditorViewModel)?.Comment();
			});
		}
CommentCommandDefinition