summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/FlagsAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/src/System/FlagsAttribute.cs')
-rw-r--r--src/mscorlib/src/System/FlagsAttribute.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/FlagsAttribute.cs b/src/mscorlib/src/System/FlagsAttribute.cs
new file mode 100644
index 0000000000..d9f99c3b28
--- /dev/null
+++ b/src/mscorlib/src/System/FlagsAttribute.cs
@@ -0,0 +1,22 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
+namespace System {
+
+ using System;
+ // Custom attribute to indicate that the enum
+ // should be treated as a bitfield (or set of flags).
+ // An IDE may use this information to provide a richer
+ // development experience.
+ [Serializable]
+ [AttributeUsage(AttributeTargets.Enum, Inherited = false)]
+ [System.Runtime.InteropServices.ComVisible(true)]
+ public class FlagsAttribute : Attribute
+ {
+ public FlagsAttribute()
+ {
+ }
+ }
+}