title: Determining .Net method suffix number in VBScript (COM-interop)
body: <p>You can use .NET methods through COM-interop in VBScript. You have to append a certain suffix number to the method since overloads don't cross the managed/unmanaged boundary. The suffix number doesn't seem to have a particular order...how is the suffix number determined?</p>
  
  <p>Example:</p>
  
  <pre><code>Dim encoding, bytesthroughdotnet
  Set encoding = CreateObject("System.Text.UTF8Encoding")
      bytesthroughdotnet = encoding.GetBytes_4("你好Ğ") 'get bytes
      WScript.Echo LenB(bytesthroughdotnet) 'length
  Set encoding = Nothing
  </code></pre>
  
  <p>How come _4 is used for GetBytes?</p>
  
  <p>(This question follows this <a href="https://stackoverflow.com/questions/9753651/system-text-utf8encoding-from-vbscript/9754093#comment12409367_9754093">response</a> )</p>