Buy Questpond's video subscriptions on
huge discount
.
Online: 1133
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
C#
>
Loading ...
can we declare a block as static in c#?
Posted by
Ajitnayak
on 2/28/2009 | Category:
C# Interview questions
| Views: 13624
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
NO,because c# doesnot support static block,but it supports static method
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
How can style elements be applied? (similar to a C ...
Next > :
difference between custom control and user control
Comments or Responses
Posted by:
Meme
on: 3/12/2012 |
Points: 10
yes we can declare a static block in c#. we can access only stati c data members in this block.
syntax:
class sample
{
static int count;
public static int getcount()
{ ....
}
static {
count =getcount();
}
}
Login to post response
More Interview Questions by Ajitnayak
Latest Interview Questions
difference between custom control and user control
which of the following controls support databinding.
State some limitations of style sheets?
What is the difference between Server.Transfer and Response.Redirect?
What event can you subscribe to if you want to display information fro ...
Which is not the step to create custom SOAP (Simple Object Access Prot ...
What is DESCRIBE command in SQL Server 2005? What is its purpose? How ...
How do you optimize stored procedures in SQL Server 2005
More ...