using System;
using System.Collections.Generic;
using System.Runtime.Remoting.Messaging;
using System.Text;
using eu.datex2;

namespace Datex2_test
{

    class StringHelper
    {
        private readonly String defaultLang;

        public StringHelper(String defaultLang)
        {
            this.defaultLang = defaultLang;
        }

        public MultilingualString createFrom(String value)
        {
            return createFrom(value, defaultLang);
        }

        public MultilingualString createFrom(String value, String lang)
        {
            var mls = new MultilingualString();
            var vals = new MultilingualStringValue[1];
            var val = new MultilingualStringValue
            {
                lang = lang.ToString(),
                Value = value
            };
            vals[0] = val;
            mls.values = vals;
        return mls;
        }
    }

    
}
