提交 33380041 编写于 作者: J Jason Malinowski 提交者: GitHub

Merge pull request #21069 from dpoeschl/UseSharedAttribute

Add Shared attributes to code fix providers
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Composition;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.CSharp.Extensions;
using Microsoft.CodeAnalysis.CSharp.Syntax;
......@@ -7,7 +8,7 @@
namespace Microsoft.CodeAnalysis.CSharp.UseIsNullCheck
{
[ExportCodeFixProvider(LanguageNames.CSharp)]
[ExportCodeFixProvider(LanguageNames.CSharp), Shared]
internal class CSharpUseIsNullCheckCodeFixProvider : AbstractUseIsNullCheckCodeFixProvider
{
protected override string GetIsNullTitle()
......
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Composition
Imports Microsoft.CodeAnalysis.CodeFixes
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
Imports Microsoft.CodeAnalysis.UseIsNullCheck
Namespace Microsoft.CodeAnalysis.VisualBasic.UseIsNullCheck
<ExportCodeFixProvider(LanguageNames.VisualBasic)>
<ExportCodeFixProvider(LanguageNames.VisualBasic), [Shared]>
Friend Class VisualBasicUseIsNullCheckCodeFixProvider
Inherits AbstractUseIsNullCheckCodeFixProvider
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册