title: How to use ToString to display object types in an array?
body: <p>I have an array with different types of objects, for example:</p>
  <pre><code>Object[] array = {&quot;String_1&quot;, double 3.14, &quot;String_2&quot;};
  </code></pre>
  <p>I want to override <code>ToString()</code> so when I use it on the array above it will show object class types and how many of them are in the array, for example:</p>
  <pre><code>Object[] array = {&quot;String_1&quot;, double 3.14, &quot;String_2&quot;};
  
  Console.WriteLine(array.ToString()); // will print &quot;String-2,Double-1&quot;
  </code></pre>
  <hr />
  <p>Would like some help with doing this :-)</p>