File: Microsoft\CSharp\CSharpMemberAttributeConverter.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.CodeDom;
 
namespace Microsoft.CSharp
{
    internal sealed class CSharpMemberAttributeConverter : CSharpModifierAttributeConverter
    {
        private CSharpMemberAttributeConverter() { } // no  need to create an instance; use Default
 
        public static CSharpMemberAttributeConverter Default { get; } = new CSharpMemberAttributeConverter();
 
        protected override string[] Names { get; } = new[] { "Public", "Protected", "Protected Internal", "Internal", "Private" };
 
        protected override object[] Values { get; } =
            new object[] { MemberAttributes.Public, MemberAttributes.Family, MemberAttributes.FamilyOrAssembly, MemberAttributes.Assembly, MemberAttributes.Private };
 
        protected override object DefaultValue => MemberAttributes.Private;
    }
}