title: C# Variable description function
body: <p>Is there a built in function in C# / .net that will take a variable and describe / output it's contents?  In PHP there are the <a href="http://php.net/print_r" rel="nofollow noreferrer"><code>print_r()</code></a> and <a href="http://php.net/var_dump" rel="nofollow noreferrer"><code>var_dump()</code></a> functions which achieve this (I realise the inherent difference between C# and PHP, just providing a example of output)</p>
  
  <p>As this is for a logging script it needs to be as lightweight and unintrusive as possible - I'm considering writing a function to do this however would prefer to use a built in if available.</p>
  
  <p>Examples of variables would be arrays / lists of custom objects, dumping out of eventargs passed to an event handler etc.  I'd like to take this as far as possible whilst avoiding the expense of reflection.</p>
  
  <p>Thanks</p>