Peter Roseman

Peter Roseman

  • NA
  • 1
  • 851

Any custom function to extract parameters from strings?

Oct 17 2014 12:14 PM
I once came across a function in VB6 that received 3 parameters "Parameter","Match" and "Delimiter" that could extract information from a given string as follows:
SiteAddress=XXXX;UID=XXXX;PWD=XXXX
 
In which SiteAddress, for example, is a parameter, ";" is the delimiter and "=" is the match. I wonder if anyone can help me have one written in C#.

Answers (1)