/
dev-npgsql
/
npgsql
Обзор
Документация
Войти
/
dev-npgsql
/
npgsql
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
v9.0.2
src/Npgsql/Shims/ExperimentalAttribute.cs
21 строка
2 KB
Nino Floris
Remove explicit this
30 окт 2024, 21:18
Не верифицирован
30 окт 2024, 21:18
441c115
Код
Авторство
О чём код?
#if !NET8_0_OR_GREATER namespace System.Diagnostics.CodeAnalysis; /// <summary>Indicates that an API is experimental and it may change in the future.</summary> [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, Inherited = false)] public sealed class ExperimentalAttribute : Attribute { /// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.CodeAnalysis.ExperimentalAttribute" /> class, specifying the ID that the compiler will use when reporting a use of the API the attribute applies to.</summary> /// <param name="diagnosticId">The ID that the compiler will use when reporting a use of the API the attribute applies to.</param> public ExperimentalAttribute(string diagnosticId) => DiagnosticId = diagnosticId; /// <summary>Gets the ID that the compiler will use when reporting a use of the API the attribute applies to.</summary> /// <returns>The unique diagnostic ID.</returns> public string DiagnosticId { get; } /// <summary>Gets or sets the URL for corresponding documentation. /// The API accepts a format string instead of an actual URL, creating a generic URL that includes the diagnostic ID.</summary> /// <returns>The format string that represents a URL to corresponding documentation.</returns> public string? UrlFormat { get; set; } } #endif