Answer Posted / shadab alam
static costructor of a class invoked automatically when
class is loded provided Main method is given.There is no
need to create instance of a class.
we can prove it by following program in c#
using System;
class aa
{
static aa()
{
Console.Write("without instance");
}
public static void Main()
{
}
}
output will be
---------------
without instance
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
What is dataset c#?
What is the difference between a variable and a literal?
How do I do implement a assert?
What is the use of table aliases?
What are Regex / regular expressions ?
How can I check the type of an object at runtime?
What are annotations in c#?
What is the keyword used to prevent a class from being inherited by another class?
Can struct be static in c#?
What is difference between string and stringbuilder in c#?
Why data types are important?
Does unity require coding?
Explain About namespaces
What is the default value of date?
Are arrays value types or reference types?