// 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);
    }
}
