Skip to content
Discussion options

You must be logged in to vote

Let's make an equivalent of inRiver.Remoting.Objects.LocaleString so we don't need to pull in another binary.

namespace External
// Assume everything in `External` is in another library we don't control
namespace External
{
    public class LocaleString
    {
        private readonly Dictionary<CultureInfo, string?> stringMap;

        public LocaleString()
        {
            stringMap = new();
        }

        public LocaleString(Dictionary<CultureInfo, string?> stringMap)
        {
            this.stringMap = stringMap ?? throw new ArgumentNullException(nameof(stringMap));
        }

        public string? this[CultureInfo cultureInfo]
        {
            get => stringMap.Conta…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lahma
Comment options

lahma Mar 7, 2023
Collaborator

@KoalaBear84
Comment options

Answer selected by KoalaBear84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants