RequiredMemberAttribute.cs 506 B

123456789101112
  1. // ReSharper disable CheckNamespace
  2. // ReSharper disable ConditionalAnnotation
  3. using JetBrains.Annotations;
  4. namespace System.Runtime.CompilerServices;
  5. /// <summary>Polyfill to enable netstandard2.0 assembly to use the required keyword.</summary>
  6. /// <remarks>Excluded from output assembly via file specified in ApiCompatExcludeAttributesFile element in the project file.</remarks>
  7. [AttributeUsage (AttributeTargets.Property)]
  8. [UsedImplicitly]
  9. public sealed class RequiredMemberAttribute : Attribute;