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); }
public static CodeExpression Instance(MemberAttributes accessModifiers) { return(accessModifiers.HasBitMask(MemberAttributes.Static) ? Static( ) : This( )); }