Is it possible to pass in a bool variable into an overridden toString() method, so it can conditionally print the object in different formats?
bool
toString()
The typical pattern for parametrized ToString() is to declare an overload with a string parameter.
Example:
class Foo { public string ToString(string format) { //change behavior based on format } }
For a framework example see Guid.ToString