提交 7595a2ea 编写于 作者: C CyrusNajmabadi

Use auto props.

上级 07b39cfe
......@@ -18,12 +18,9 @@ private partial class PackageReference
{
private class InstallPackageAndAddImportCodeAction : CodeAction
{
private readonly string _title;
private readonly CodeActionPriority _priority;
public override string Title => _title;
public override string EquivalenceKey => _title;
internal override CodeActionPriority Priority => _priority;
public override string Title { get; }
public override string EquivalenceKey => Title;
internal override CodeActionPriority Priority { get; }
/// <summary>
/// The document before we added the import. Used so we can roll back if installing
......@@ -48,8 +45,8 @@ private class InstallPackageAndAddImportCodeAction : CodeAction
ImmutableArray<TextChange> textChanges,
InstallPackageDirectlyCodeActionOperation installOperation)
{
_title = title;
_priority = priority;
Title = title;
Priority = priority;
_oldDocument = oldDocument;
_textChanges = textChanges;
_installOperation = installOperation;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册