File: src\Shared\runtime\SR.cs
Web Access
Project: src\src\Shared\test\Shared.Tests\Microsoft.AspNetCore.Shared.Tests.csproj (Microsoft.AspNetCore.Shared.Tests)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Globalization;
 
namespace System.Net.Http
{
    internal static partial class SR
    {
        // The resource generator used in AspNetCore does not create this method. This file fills in that functional gap
        // so we don't have to modify the shared source.
        internal static string Format(string resourceFormat, params object[] args)
        {
            if (args != null)
            {
                return string.Format(CultureInfo.CurrentCulture, resourceFormat, args);
            }
 
            return resourceFormat;
        }
    }
}