In order for an attribute to be Common Language Specification (CLS) compliant, it must follow which one of the following rules?

  1. It must inherit directly or indirectly from System.Attribute

  2. It must be defined in the System.Attribute namespace

  3. It must have the AttributeUsageAttribute applied to its class.

  4. It must only be applied to a selected type once

  5. It must be applied only at the assembly level.


Correct Option: C

Find more quizzes: