23 lines
792 B
C#
23 lines
792 B
C#
// 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;
|
|
using System.Composition;
|
|
|
|
namespace dnSpy.Roslyn.Internal.QuickInfo
|
|
{
|
|
[MetadataAttribute]
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
internal class ExportQuickInfoProviderAttribute : ExportAttribute
|
|
{
|
|
public string Name { get; }
|
|
public string Language { get; }
|
|
|
|
public ExportQuickInfoProviderAttribute(string name, string language)
|
|
: base(typeof(IQuickInfoProvider))
|
|
{
|
|
this.Name = name ?? throw new ArgumentNullException(nameof(name));
|
|
this.Language = language ?? throw new ArgumentNullException(nameof(language));
|
|
}
|
|
}
|
|
}
|