how to read strings using c# -


How can I read the string value

Quote: No: 32586 / Client: ABCDEF I want to read the values ​​of stars in any order

Ensure what you want to do, but it can be lower than your given string

  string input =" quote: no: 32586 / Client: No: ABCDEF / Total M Camel: 32 / processed: "No; Var query = input from pair input Split ('/') item = pair. Select the sample (':') new {parts = objects [0], value = objects [1]}; // In the list and index by var list = query.ToList (); // or in key dictionary & lt; String, string & gt; Dictionary = query.ToDictionary (item => item part, item => item value);  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -