Raising Errors

When you throw an exception you want to ensure that the Stack Trace is maintained

catch (Exception ex) 
{
   throw
}

You should use just throw and not throw ex



© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext