/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/fundamentals/runtime-libraries/snippets/System/String/IsNullOrEmpty/fsharp/NullString1.fs
19 строк
463 B
Genevieve Warren
Move member remarks (#39270)
30 янв 2024, 00:43
Не верифицирован
30 янв 2024, 00:43
6c88824
Код
Авторство
О чём код?
namespace IsNullOrEmpty open System module NullString1 = // <Snippet2> let (s: string) = null printfn "The value of the string is '%s'" s try printfn "String length is %d" s.Length with | :? NullReferenceException as ex -> printfn "%s" ex.Message // The example displays the following output: // The value of the string is '' // Object reference not set to an instance of an object. // </Snippet2>