C# FAQ: Does CSharp have a throws clause

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search
CSharp-Online.NET:FAQs
edit

Does C# have a throws clause?

No, C# does not have a throws clause. Unlike the Java language, C# does not allow developers to specify the exceptions which a method can throw.


See also


Personal tools