File: System\Runtime\InteropServices\TypeLibTypeAttribute.cs
Web Access
Project: src\src\libraries\System.Runtime.InteropServices\src\System.Runtime.InteropServices.csproj (System.Runtime.InteropServices)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.Runtime.InteropServices
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Enum | AttributeTargets.Struct, Inherited = false)]
    public sealed class TypeLibTypeAttribute : Attribute
    {
        public TypeLibTypeAttribute(TypeLibTypeFlags flags)
        {
            Value = flags;
        }
 
        public TypeLibTypeAttribute(short flags)
        {
            Value = (TypeLibTypeFlags)flags;
        }
 
        public TypeLibTypeFlags Value { get; }
    }
}