File: Microsoft\CSharp\CSharpTypeAttributeConverter.cs
Web Access
Project: src\src\libraries\System.CodeDom\src\System.CodeDom.csproj (System.CodeDom)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Reflection;
 
namespace Microsoft.CSharp
{
    internal sealed class CSharpTypeAttributeConverter : CSharpModifierAttributeConverter
    {
        private CSharpTypeAttributeConverter() { } // no  need to create an instance; use Default
 
        public static CSharpTypeAttributeConverter Default { get; } = new CSharpTypeAttributeConverter();
 
        protected override string[] Names { get; } = new[] { "Public", "Internal" };
 
        protected override object[] Values { get; } = new object[] { TypeAttributes.Public, TypeAttributes.NotPublic };
 
        protected override object DefaultValue => TypeAttributes.NotPublic;
    }
}