#region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2015 Google Inc. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd #endregion #if !NET5_0_OR_GREATER // Copied with permission from https://github.com/dotnet/runtime/tree/8fbf206d0e518b45ca855832e8bfb391afa85972/src/libraries/System.Private.CoreLib/src/System/Diagnostics/CodeAnalysis namespace System.Diagnostics.CodeAnalysis { /// /// Specifies the types of members that are dynamically accessed. /// /// This enumeration has a attribute that allows a /// bitwise combination of its member values. /// [Flags] internal enum DynamicallyAccessedMemberTypes { /// /// Specifies no members. /// None = 0, /// /// Specifies the default, parameterless public constructor. /// PublicParameterlessConstructor = 0x0001, /// /// Specifies all public constructors. /// PublicConstructors = 0x0002 | PublicParameterlessConstructor, /// /// Specifies all non-public constructors. /// NonPublicConstructors = 0x0004, /// /// Specifies all public methods. /// PublicMethods = 0x0008, /// /// Specifies all non-public methods. /// NonPublicMethods = 0x0010, /// /// Specifies all public fields. /// PublicFields = 0x0020, /// /// Specifies all non-public fields. /// NonPublicFields = 0x0040, /// /// Specifies all public nested types. /// PublicNestedTypes = 0x0080, /// /// Specifies all non-public nested types. /// NonPublicNestedTypes = 0x0100, /// /// Specifies all public properties. /// PublicProperties = 0x0200, /// /// Specifies all non-public properties. /// NonPublicProperties = 0x0400, /// /// Specifies all public events. /// PublicEvents = 0x0800, /// /// Specifies all non-public events. /// NonPublicEvents = 0x1000, /// /// Specifies all interfaces implemented by the type. /// Interfaces = 0x2000, /// /// Specifies all members. /// All = ~None } } #endif