File: Validation.cs | Web Access |
Project: src\src\Microsoft.DotNet.XliffTasks\Microsoft.DotNet.XliffTasks.csproj (Microsoft.DotNet.XliffTasks) |
// 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 XliffTasks { internal static class Validation { public static void ThrowIfNullOrEmpty(string value, string parameterName) { if (value == null) { throw new ArgumentNullException(parameterName); } if (value.Length == 0) { throw new ArgumentException("Value cannot be empty", parameterName); } } } } |