/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
samples/snippets/visualbasic/VS_Snippets_CLR/CodeTryCatchFinallyExample/VB/source2.vb
17 строк
461 B
Next Turn
Format codes based on .editorconfig, Part 5 (#18868)
10 июн 2020, 17:09
Не верифицирован
10 июн 2020, 17:09
31be9cf
Код
Авторство
О чём код?
'<snippet3> Class ArgumentOutOfRangeExample Public Shared Sub Main() Dim array1() As Integer = {0, 0} Dim array2() As Integer = {0, 0} Try Array.Copy(array1, array2, -1) Catch e As ArgumentOutOfRangeException Console.WriteLine("Error: {0}", e) Throw Finally Console.WriteLine("This statement is always executed.") End Try End Sub End Class '</snippet3>