T
T
TheTalion2016-10-05 23:20:14
C++ / C#
TheTalion, 2016-10-05 23:20:14

What tool can be used to implement multi-level parsing of a string (string) and receiving data from it?

Good day. I will simulate the following situation:
I receive a message that contains the following data:

На С#
Client.GetMessage("MyStatus: " + CurrentStatus);

What tool (in c#) can implement the perception of this string by type:
If the message title = "MyStatus", then accept the following information (CurrentStatus, which also comes in string) and change the CurrentStatus variable to the value that came?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan, 2016-10-05
@TheTalion

Regular expressions + a bit of logic.
PS
Not only C# but in general...

R
Roman, 2016-10-06
@yarosroman

string.Contains("MyStatus")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question