Answers for "exception c# general"

C#
0

how to get error code from exception in c#

try {
	// some operation causing an exception
}
catch (SqlException e) {
	if (e.ErrorCode == 0x80131904)
      	// ...
		return null;
	throw;
}
Posted by: Guest on March-25-2021
-2

c# exceptions list

Follow the link for full list of exceptions
Posted by: Guest on April-11-2021

C# Answers by Framework

Browse Popular Code Answers by Language