I am not sure if this has already been asked since I am not sure how to phrase this properly.
class Program {
public static void Main (string[] args)
{
Console.WriteLine ("Start:");
Example thing = new Example();
Console.WriteLine(thing);
}
}
This would write the type of object:
>> Example
Whereas I would like it to print a value that the Example object would have.
Is this possible and, if so, how would I do this?
EDIT: I would like it to output like this (if "hello" was the contents of the variable I want to output):
Console.WriteLine(thing);
Output:
>> hello