/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Shared/StringHelpers.cs
17 строк
450 B
Safia Abdalla
Support loading OIDC options from configuration (#42679)
16 июл 2022, 03:16
Не верифицирован
16 июл 2022, 03:16
2e08d0c
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System; internal static class StringHelpers { public static T ParseValueOrDefault<T>(string? stringValue, Func<string, T> parser, T defaultValue) { if (string.IsNullOrEmpty(stringValue)) { return defaultValue; } return parser(stringValue); } }