예제 #1
0
        public static MemberAttributes ValidateAccessModifiers(this CodeDomProvider codeDomProvider, MemberAttributes accessModifiers)
        {
            if (accessModifiers.HasBitMask(MemberAttributes.Public | MemberAttributes.Static))
            {
                if (!codeDomProvider.Supports(GeneratorSupport.PublicStaticMembers))
                {
                    accessModifiers &= ~MemberAttributes.Static;
                }
            }

            return(accessModifiers);
        }
예제 #2
0
 public static CodeExpression Instance(MemberAttributes accessModifiers)
 {
     return(accessModifiers.HasBitMask(MemberAttributes.Static) ? Static( ) : This( ));
 }