/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Tools/Shared/CommandLine/Ensure.cs
19 строк
447 B
joegoldman2
Use ArgumentException.ThrowIfNullOrEmpty and ThrowIfNullOrWhitespace (#52897)
20 янв 2024, 03:01
Не верифицирован
20 янв 2024, 03:01
6372a53
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; namespace Microsoft.Extensions.Tools.Internal; internal static class Ensure { public static T NotNull<T>(T obj, string paramName) where T : class { if (obj == null) { throw new ArgumentNullException(paramName); } return obj; } }