/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
samples/snippets/visualbasic/VS_Snippets_CLR/formatting.numeric.custom/vb/example1.vb
20 строк
588 B
Nick Schonning
fix: various typos (#34881)
06 апр 2023, 23:55
Не верифицирован
06 апр 2023, 23:55
30f0750
Код
Авторство
О чём код?
' Visual Basic .NET Document Option Strict On <Assembly: CLSCompliant(True)> Module Example1 Public Sub Main() ' <Snippet10> Dim number1 As Double = 1234567890 Dim value1 As String = number1.ToString("(###) ###-####") Console.WriteLine(value1) Dim number2 As Integer = 42 Dim value2 As String = number2.ToString("My Number = #") Console.WriteLine(value2) ' The example displays the following output: ' (123) 456-7890 ' My Number = 42 ' </Snippet10> End Sub End Module