What is the use of "default" and "Using" keyword?
Answer Posted / pavan kumar
"default" is a keyword which can be used in two ways
1)In switch as default label
2)In generics as default paramenter.
same as "using" key word this also used in two ways
1)For implementing the namespace into current class
2)Used to check properly dispose of object using the
IDisposable interface
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Explain the serialization in .net
Is c# lazy thread safe?
What is the difference between readkey and readline in c#?
Which of these statements correctly declares a two-dimensional array in c#?
What is the difference between ienumerable and icollection?
Why do we need static in c#?
What is a web service in c#?
Why do we need indexers in c#?
What is interface used in c#?
Can you use foreach iteration on arrays in c#?
What is method in c#?
How long does it take to learn c# programming?
What is the solution if you need to manipulate sets of items?
What are the main reasons to use c# language?
What are the access modifiers in c#?