Dnspy/dnSpy/Roslyn/dnSpy.Roslyn.Internal/QuickInfo/ExportQuickInfoProviderAttribute.cs

23 lines
792 B
C#
Raw Normal View History

2021-09-20 18:20:01 +02:00
// 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));
}
}
}