Fix IDE0025 (use expression body for properties)
[mono-project.git] / netcore / System.Private.CoreLib / shared / System / Reflection / AssemblyFlagsAttribute.cs
blob523430f9cd1772e33b72da32235ded2e9b7740b6
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 namespace System.Reflection
7 [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
8 public sealed class AssemblyFlagsAttribute : Attribute
10 private readonly AssemblyNameFlags _flags;
12 [Obsolete("This constructor has been deprecated. Please use AssemblyFlagsAttribute(AssemblyNameFlags) instead. https://go.microsoft.com/fwlink/?linkid=14202")]
13 [CLSCompliant(false)]
14 public AssemblyFlagsAttribute(uint flags)
16 _flags = (AssemblyNameFlags)flags;
19 [Obsolete("This property has been deprecated. Please use AssemblyFlags instead. https://go.microsoft.com/fwlink/?linkid=14202")]
20 [CLSCompliant(false)]
21 public uint Flags => (uint)_flags;
23 public int AssemblyFlags => (int)_flags;
25 [Obsolete("This constructor has been deprecated. Please use AssemblyFlagsAttribute(AssemblyNameFlags) instead. https://go.microsoft.com/fwlink/?linkid=14202")]
26 public AssemblyFlagsAttribute(int assemblyFlags)
28 _flags = (AssemblyNameFlags)assemblyFlags;
31 public AssemblyFlagsAttribute(AssemblyNameFlags assemblyFlags)
33 _flags = assemblyFlags;