Telegram Group & Telegram Channel
Зачем в C# используется блок finally?

Блок finally всегда выполняется независимо от того, есть исключение или нет. Когда код выполняется в блоке try и возникает исключение, управление возвращается в блок catch, и в конце выполняется блок finally. Таким образом, блок finally может содержать закрытие соединений с базой данных и освобождение обработчиков файлов.



tg-me.com/csharp_interview_lib/525
Create:
Last Update:

Зачем в C# используется блок finally?

Блок finally всегда выполняется независимо от того, есть исключение или нет. Когда код выполняется в блоке try и возникает исключение, управление возвращается в блок catch, и в конце выполняется блок finally. Таким образом, блок finally может содержать закрытие соединений с базой данных и освобождение обработчиков файлов.

BY Библиотека собеса по C# | вопросы с собеседований


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/csharp_interview_lib/525

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

How Does Telegram Make Money?

Telegram is a free app and runs on donations. According to a blog on the telegram: We believe in fast and secure messaging that is also 100% free. Pavel Durov, who shares our vision, supplied Telegram with a generous donation, so we have quite enough money for the time being. If Telegram runs out, we will introduce non-essential paid options to support the infrastructure and finance developer salaries. But making profits will never be an end-goal for Telegram.

Tata Power whose core business is to generate, transmit and distribute electricity has made no money to investors in the last one decade. That is a big blunder considering it is one of the largest power generation companies in the country. One of the reasons is the company's huge debt levels which stood at ₹43,559 crore at the end of March 2021 compared to the company’s market capitalisation of ₹44,447 crore.

telegram from sa


Telegram Библиотека собеса по C# | вопросы с собеседований
FROM USA