开发者

Exception detail

开发者 https://www.devze.com 2023-01-20 19:39 出处:网络
I am new to .net ..Is there any difference between exception and Exc开发者_JAVA技巧eption in .net I received error while using \'exception\'..C# is case sensitive, while VB.NET is not.If your class/pa

I am new to .net ..Is there any difference between exception and Exc开发者_JAVA技巧eption in .net I received error while using 'exception'..


C# is case sensitive, while VB.NET is not. If your class/page/control is in C#, then there is a difference between Exception and exception, otherwise not.


C# is case sensitive (Exception != exception) - in the BCL (Base Class Library), there is an Exception class, but there is no exception class.

Your question however is not very clear - can you post the relevant parts of your code?


Assuming you are using c#, the keyword Exception is case-sensitive. If you intend to use the class then you need to use the Exception class than in lowercase.

0

精彩评论

暂无评论...
验证码 换一张
取 消