What is the c# equivalent of c++ catch (…), which was a catch-all statement for any possible exception? Does c# support try-catch-finally blocks?
Answer / Ekta Dohrey
In C#, you can use 'catch(Exception)' as a catch-all statement to handle any type of exceptions. Yes, C# supports try-catch-finally blocks. The finally block is executed after the try and catch blocks, regardless of whether an exception occurred or not.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is multithreading? What are the problems that comes with multithreading and how to manage them?
What is delay signing..??
Can a method be sealed in c#?
What is binary search tree in data structure?
Why do we use dictionary in c#?
What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?
What is difference between private and protected?
How do you implement thread synchronization (object.wait, notify,and criticalsection) in c#?
Define c# i/o classes? List the commonly used classes?
Explain the access modifiers in c#?
What are the Types of instancing properties and explain each. Explain the difference between multiuse,singleuse and globalmultiuse and which is default
Can we inherit static class in 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)