/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/fundamentals/runtime-libraries/snippets/System/String/IsNullOrEmpty/fsharp/isnullorempty1.fs
19 строк
382 B
Genevieve Warren
Move member remarks (#39270)
30 янв 2024, 00:43
Не верифицирован
30 янв 2024, 00:43
6c88824
Код
Авторство
О чём код?
namespace IsNullOrEmpty open System module IsNullOrEmpty1 = // <Snippet1> let testForNullOrEmpty (s: string): bool = s = null || s = String.Empty let s1 = null let s2 = "" printfn "%b" (testForNullOrEmpty s1) printfn "%b" (testForNullOrEmpty s2) // The example displays the following output: // true // true // </Snippet1>