示例#1
0
        private void AdresStreamToAdres()
        {
            var characters = _addressStream.ToCharArray();

            for (var i = 0; i < characters.Length; i++)
            {
                if (IsInObszarKodAdresRange(i))
                {
                    ObszarKod = ObszarKod.ReplaceAt(i, characters[i]);
                }
                if (IsInSegment1AdresRange(i))
                {
                    Segment1 = Segment1.ReplaceAt(i - 2, characters[i]);
                }
                if (IsInSegment2AdresRange(i))
                {
                    Segment2 = Segment2.ReplaceAt(i - 5, characters[i]);
                }
            }
        }