title: Can Blazor JavaScript return an array?
body: <p>I'm trying to get some html element position in javascript and passe it back to the C# but i get that error : Serialization and deserialization of 'System.Type' instances are not supported.</p>
  <p>Blazor:</p>
  <pre><code>double[] jsResult =  await _jsRuntime.InvokeAsync&lt;double[]&gt;(&quot;getBottomOffset&quot;, _element);
  double bottomOffset = jsResult[0];
  double height = jsResult[1];
  _resultsStyle = Options.Count * ResultHeight &lt; bottomOffset ? $&quot;top: 0; left: 0; &quot; : $&quot;bottom: -{height}px; left: 0;&quot;;
  </code></pre>
  <p>JS :</p>
  <pre><code>function getBottomOffset(el) {
  const rect = el.getBoundingClientRect();
  return [(window.innerHeight - rect.bottom), rect.height];
  </code></pre>
  <p>}</p>