File: Internal\WebHostUtilities.cs
Web Access
Project: src\src\Hosting\Hosting\src\Microsoft.AspNetCore.Hosting.csproj (Microsoft.AspNetCore.Hosting)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.Hosting;
 
internal sealed class WebHostUtilities
{
    public static bool ParseBool(string? value)
    {
        return string.Equals("true", value, StringComparison.OrdinalIgnoreCase)
            || string.Equals("1", value, StringComparison.OrdinalIgnoreCase);
    }
}