title: How to use Span in Convert.TryFromBase64String()?
body: <p>I was trying to write some <code>try catch</code> for <code>Convert.FromBase64String()</code> and I found out that it already has <code>TryFromBase64String()</code> method. But it needs 3 arguments:</p>
  
  <pre><code>public static bool TryFromBase64String(string s, Span&lt;byte&gt; bytes, out int bytesWritten);
  </code></pre>
  
  <p>So how can I use <code>Span&lt;byte&gt; bytes</code> there?</p>
  
  <p>I only found this in docs, but without proper description. Maybe this is too obvious.</p>
  
  <p><a href="https://docs.microsoft.com/en-us/dotnet/api/system.convert.tryfrombase64string?view=netcore-2.1" rel="noreferrer">https://docs.microsoft.com/en-us/dotnet/api/system.convert.tryfrombase64string?view=netcore-2.1</a></p>
  
  <p>Thank to @Damien_The_Unbeliever and <a href="https://msdn.microsoft.com/en-us/magazine/mt814808.aspx" rel="noreferrer">THIS</a> article I found out more about <code>Span</code>. So... </p>
  
  <p>Span is used for saving memory and don't call GC so much. It can store arrays or portion of array, but I still can't figure out how to use it in that method.</p>