summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/shared/System/Runtime/InteropServices/InterfaceTypeAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Runtime/InteropServices/InterfaceTypeAttribute.cs')
-rw-r--r--src/System.Private.CoreLib/shared/System/Runtime/InteropServices/InterfaceTypeAttribute.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Runtime/InteropServices/InterfaceTypeAttribute.cs b/src/System.Private.CoreLib/shared/System/Runtime/InteropServices/InterfaceTypeAttribute.cs
new file mode 100644
index 0000000000..695faa7937
--- /dev/null
+++ b/src/System.Private.CoreLib/shared/System/Runtime/InteropServices/InterfaceTypeAttribute.cs
@@ -0,0 +1,21 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+namespace System.Runtime.InteropServices
+{
+ [AttributeUsage(AttributeTargets.Interface, Inherited = false)]
+ public sealed class InterfaceTypeAttribute : Attribute
+ {
+ public InterfaceTypeAttribute(ComInterfaceType interfaceType)
+ {
+ Value = interfaceType;
+ }
+ public InterfaceTypeAttribute(short interfaceType)
+ {
+ Value = (ComInterfaceType)interfaceType;
+ }
+
+ public ComInterfaceType Value { get; }
+ }
+}