Calling an Instance Method on an Object : Object Instance « Class Interface « C# / C Sharp






Calling an Instance Method on an Object





using System;
public class MainClass {
    public static void Main() {
        string name = "Joe";
        Console.WriteLine(name.ToUpper());
    }
}

       








Related examples in the same category

1.Object.ReferenceEquals Method
2.Calling a Class Method on a Class
3.Catch NullReferenceException Exception
4.Object assignment
5.Point object
6.Pass by ref for object parameters