title: How do I Split the string into two separate variables in C#
body: <p>I have a string that I want to store in two different varaibles in C#.</p>
  
  <pre><code>s= "Name=team1; ObjectGUID=d8fd5125-b065-48cb-b5f3-c20f509b7476"
  </code></pre>
  
  <p>I want Var1 = team1 &amp; Var2 = d8fd5125-b065-48cb-b5f3-c20f509b7476</p>
  
  <p>Here's what I am trying to do:</p>
  
  <pre><code>var1 = s.Replace("Name=","").Replace("; ObjectGUID=", "");
  </code></pre>
  
  <p>But I am not able to figure out how to bifurcate the Name value to var1 and eliminate the rest. And it is possible that the value of 'Name' could vary so I can't fix the length to chop off.</p>