Reference Type

noun

say it: “REF-er-ens TYP” /ˈrɛfərəns taɪp/

A C# type, such as an array or a class, whose variable holds the address of the object, so a copy of the variable leads to the same object.

What is Reference Type in C#?

Reference Type — A type whose variable stores a reference to an object, such as a class, array, or string.

class Customer
{
    string name = "Ada";
}

In a sentence

  • “An array is a reference type, so a method that changes scores[3] changes the caller's array too.”

Level: Novice · More C# terms at this level

Updated