Top "Reference-type" questions

In programming language theory, a reference type is a data type that refers to an object in memory.

.NET Parameter passing - by reference v/s by value

I'm trying to validate my understanding of how C#/.NET/CLR treats value types and reference types. I've read so …

c# .net clr value-type reference-type
Uniquely Identifying Reference Types in the Debugger

I come from a C++ background, so apologies if this is a non-C# way of thinking, but I just need …

c# visual-studio debugging reference-type
Do interface variables have value-type or reference-type semantics?

Do interface variables have value-type or reference-type semantics? Interfaces are implemented by types, and those types are either value types …

c# .net interface value-type reference-type
Passing string ByVal in VB.NET AND C#

So strings are reference types right? My understanding is a reference to the string in the heap is passed even …

c# vb.net reference-type byref byval
Why is string a reference type?

Why is string a reference type, even though it's normally primitive data type such as int, float, or double.

c# string primitive-types reference-type
In C#, is there a clean way of checking for multiple levels of null references

For example, if I want to call the following: person.Head.Nose.Sniff() then, if I want to be safe, …

c# null reference-type
Why are reference types not initialized to null?

Check this code.. string str; if (str.Contains("something..")) { } Compiler throws this error for this code Use of unassigned local …

c# .net null initialization reference-type
Does Java make distinction between value type and reference type

C# makes distinction of those two. Does java do the same or differently?

c# java value-type reference-type
Use cases for boxing a value type in C#?

There are cases when an instance of a value type needs to be treated as an instance of a reference …

c# boxing value-type reference-type cts
Storing a reference in c#

I'm trying to design a class which can update a reference to an object (outside the class) on destruction. So …

c# reference-type