can we pass coditions in swtich case?

Answer Posted / nikitha

No we cannot pass condition in switch

ex:
int a, b;
string str1;
switch(a+b)
Do some thing like this u will get compile error...

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate the session object and application object?

541


What is difference between singleton and single call?

650


What are the memory-mapped files?

526


Define xmlreader class.

579


What is the difference between “Web.config” and “Machine.Config”?

700






What is the mvc model?

581


How many types of state management are there in asp net?

524


How do sessions work?

540


Explain the Order of events in an asp.net page?

606


Is there any limit for query string? Means what is the maximum size?

494


How do we implement bundling in MVC?

595


how to implement some securty aspect in our application i.e 1.cookie poisioning. 2.data encryption. 3.forcefull browsing 4.sql/code injection 5.securing web app by using web services ........my question is how to implement these thing in our application is this done by hard coding or by help of some tool

1644


In which situation can you not use a viewstate?

538


What is data binding in asp net?

594


Explain the difference between debug.write and trace.write? When should each be used?

564