title: vector of string in c#
body: <p>I'm here to ask you help with a code i'm working on.</p>
  
  <p>I'm converting a tool from C++ to C#.</p>
  
  <p>I've almost completed everything, but...</p>
  
  <p>There's the code in C++ of Struct and how the tool use it:</p>
  
  <pre><code>struct Line
  {
      uint16_t Magic;
      std::vector&lt;std::string&gt; Params;
  }
  </code></pre>
  
  <p>This is the structure, the tool use like this in a switch:</p>
  
  <pre><code>case MAGIC_FUNCTION_BEGIN:
  {
      pLine -&gt; Params[0][8] = ' ';
      Output &lt;&lt; pLine -&gt; Params[0];
      pLine -&gt; Params.erase(pLine-&gt;Params.begin());
      Output &lt;&lt; GenParams(pLine-&gt;Params) &lt;&lt; '\n';
      break;
  }
  </code></pre>
  
  <p>So, now, the question is:</p>
  
  <p>How is possible that use pLine -> Params[0][8] if it is a simple string vector?</p>
  
  <p>Thanks!</p>
  
  <hr>
  
  <p>Thank you so much for the answer.</p>
  
  <p>I resolved in C# by setting it as:</p>
  
  <pre><code>char[] text = pLine.param[0].ToCharArray();
  text[8] = ' ';
  pLine.param[0] = text.ToString();
  </code></pre>
  
  <p>Now i've to ask something else about this code...</p>
  
  <p>What it means when it does </p>
  
  <pre><code>pLine -&gt; Params.erase(pLine-&gt;Params.begin());
  </code></pre>
  
  <p>How can be converted to C# something like erase and begin?</p>
  
  <p>Thanks :)</p>