Exemplo n.º 1
0
        public Iso6523SchemeIds()
        {
            loadFromAssembly();
            Iso6523SchemeId isi = new Iso6523SchemeId()
            {
                Iso6523 = "9953",
                SchemId = "VA:VAT",
                Name    = "Holy See(Vatican City State) VAT number"
            };

            iso6523List.Add(isi.Iso6523, isi);
            schemeIdList.Add(isi.SchemId, isi);
            isoSchemeList.Add(isi);
        }
Exemplo n.º 2
0
        private void loadFromAssembly()
        {
            var txt = SMLtestjes.Properties.Resources.Iso6523SchemeIds;

            using (StringReader sr = new StringReader(txt))
            {
                string line;
                int    i = 0;
                while ((line = sr.ReadLine()) != null)
                {
                    //Console.WriteLine($"Line[{++i} = {line}");
                    var             splited = Regex.Split(line, "([0-9]+)[\t ]([A-Z:]+)[\t ](.+)");
                    Iso6523SchemeId isi     = new Iso6523SchemeId()
                    {
                        Iso6523 = splited[1],
                        SchemId = splited[2],
                        Name    = splited[3]
                    };
                    isoSchemeList.Add(isi);
                }
            }
        }