When is it acceptable to break CLS compliance?
问题 I was wondering which edge cases exist that could make Common Language Specification compliance acceptable. Even when not intending to be accessed from other languages, I think that the tenets asserted by the CLSCompliantAttribute are good best practices. Do you have encountered / know of cases where YAGNI outweighs the best practices? 回答1: "[sic] What use is there for being CLS compliant?" Medium trust, ClickOnce, running from a shared network drive, guest profiles in a domain setting, etc.