O
O
OOOCYBER2021-12-22 06:29:54
.NET
OOOCYBER, 2021-12-22 06:29:54

How to get an array of strings String[] from Properties.Settings?

The data in Properties.Settings is written in this format, there is no other way.

<setting name="lst" serializeAs="String">
                <value>stroka1
stroka2
stroka3
stroka4</value>
            </setting>

It would be easier if there was a separator, but there is none.
How to read correctly and write strings to string[] lst = { "", };

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2021-12-22
@OOOCYBER

string.Split
where separator is "\n"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question