Can multiple catch blocks be executed?
Can multiple catch blocks be executed?
In C#, it is possible to have multiple catch blocks within a single try-catch statement. However, only one catch block will be executed, depending on the type of exception that is thrown.
Here's how it works:
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.