Top "Reference-type" questions

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

In C#, why is String a reference type that behaves like a value type?

A String is a reference type even though it has most of the characteristics of a value type such as …

c# string clr value-type reference-type
What is the difference between a reference type and value type in c#?

Some guy asked me this question couple of months ago and I couldn't explain it in detail. What is the …

c# .net value-type reference-type
Insert Dimensions to complete Expression/ReferenceType

I'm a newbie to Java. I have provided a short snippet from my code for BFS. public int bfs(Person …

java generics expression reference-type
Enum is Reference Type or Value Type?

I used Enum property in my EntityFramework 5 class, but in the database this field is nullable. Visual studio gives the …

.net enums value-type reference-type
AnyObject and Any in Swift

I don't understand when to use AnyObject and when to use Any in Swift. In my case, I've a Dictionary […

swift value-type reference-type
Can structs contain fields of reference types

Can structs contain fields of reference types? And if they can is this a bad practice?

c# struct reference-type
.NET: Are Dictionary values stored by reference or value

I have a Dictionary<int, Product>. If the same Product is added to more than one key is …

c# .net dictionary reference-type
Create reference to new object

I am just learning C++, and I've come across the following conundrum: As a C++ newbie, I've read that using …

c++ parameter-passing reference-type
c# readonly object

Is there any way to return a readonly instance of an object? public class Person { public String FirstName { get; set; } …

c# object readonly reference-type