57674295创建于 2025年1月29日历史提交
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using Iot.Device.Arduino;

namespace ArduinoCsCompiler.Runtime
{
    [ArduinoReplacement("System.SR", IncludingPrivates = true)]
    internal class MiniSR
    {
        public static string GetResourceString(string resourceKey, string? defaultString)
        {
            if (ReferenceEquals(defaultString, null))
            {
                return resourceKey;
            }

            return defaultString;
        }

        [ArduinoImplementation]
        public static string GetResourceString(string resourceKey)
        {
            return resourceKey;
        }
    }
}