Object.ToString Method Returns a String that represents the current Object. : System Object Method « Development Class « C# / C Sharp






Object.ToString Method Returns a String that represents the current Object.

 

using System;

public class Sample
{
    public static void Main() {

        Object o = new Object();
        Console.WriteLine (o.ToString());

    }
}

   
  








Related examples in the same category

1.illustrates some of the System.Object class methodsillustrates some of the System.Object class methods
2.System Functions: LogOff, Restart, Shutdown, Hibernate, Standby
3.The Point class is derived from System.Object.
4.Object.Equals Method Determines whether the specified Object is equal to the current Object.
5.override Equals method
6.Build Equals method by using the Equals method from member variables
7.ValueType.Equals
8.Object.GetType Method Gets the Type of the current instance.
9.Object.MemberwiseClone Method Creates a shallow copy of the current Object.
10.Object.ReferenceEquals Method Determines whether the specified Object instances are the same instance.