Monday, March 30, 2015

How do you specify a custom attribute for the entire assembly (rather than for a class)?

Question:How do you specify a custom attribute for the entire assembly (rather than for a class)??

Answer: </P><P align=justify>Global attributes must appear after any top-level using clauses and before the first type or namespace declarations. An example of this is as follows: using System;</P><P align=justify>[assembly : MyAttributeClass]</P><P align=justify>class X {}</P><P align=justify>Note that in an IDE-created project, by convention, these attributes are placed in AssemblyInfo.cs.

Tags:Interview Questions, Microsoft, C#,

Please submit your Interview Answer for the above Question via replying to this post. Thank you for visiting to our blog, Have a Good Day!.



Sponsor Advertisement



Bulk SMS Sending Software

SMS Management System Software

This software used to Send bulk SMS (short text messages) from your computer and assists you to rapidly connect with your customers and staff, communicate with them easily and cheaply, using latest technology that help to generate bulk SMS on just one click to all the database....

No comments:

Post a Comment