<p>I have an object of class F.  I want to output the contents of the object using Console.WriteLine for quick and dirty status updates like this:</p>

<p>Console.WriteLine(objectF);</p>

<p>This prints out only the name of the class to the console:</p>

<pre><code>F
</code></pre>

<p>I want to overload this somehow so that I can instead print out some useful information about the object and its properties.</p>

<p>I have a workaround already:  To overload the ToString method in my class and then call:
Console.WriteLine(objectF.ToString());</p>

<p>But I would rather have the simpler syntax.  Any ideas?</p>

Console.WriteLine(objectF)
Should work, if you overloaded
```
ToString
```
. When the framework needs to convert an object to a string representation, it invokes
```
ToString
```
.
```
```
public override string ToString()
{
    // replace the line below with your code
    return base.ToString();
}
```
```