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. 4 5 using System; 6 7 namespace System.Runtime.InteropServices 8 { 9 [AttributeUsage(AttributeTargets.Interface, Inherited = false)] 10 public sealed class CoClassAttribute : Attribute 11 { 12 internal Type _CoClass; 13 CoClassAttribute(Type coClass)14 public CoClassAttribute(Type coClass) 15 { 16 _CoClass = coClass; 17 } 18 19 public Type CoClass { get { return _CoClass; } } 20 } 21 } 22