How do you specify a custom attribute for the entire assembly?
Answer / Sunil Saini
In C#, you can specify a custom attribute for an entire assembly by applying it to the assembly level declaration in your code. The attribute is placed within square brackets immediately following the 'assembly' keyword. For example: n```csharpn[assembly: MyCustomAttribute()]n```
| Is This Answer Correct ? | 0 Yes | 0 No |
What is default value of enum c#?
what is default accessibility for a class? what is difference b/w viewstate and controlstate? what is the default access specifier for a top level class which are not nested into other classes?
I want to print "Hello" even before main() is executed. How will you achieve that?
Is equal in c#?
Why do we use partial class in c#?
Why do we need indexers in c#?
Why do we use virtual methods in c#?
How do I use the 'using' keyword with multiple objects?
What is sqladapter c#?
What is an inheritance in c#?
int i = 1; int j = 1; System.Console.WriteLine(i == j); System.Console.WriteLine(i.ToString() == j.ToString()); System.Console.WriteLine((object)i == (object)j); Give the sample code above, what is the output to the console?
Is c# easier than c++?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)