Top "Reference" questions

A reference is a value that enables a program to indirectly access a particular datum, such as a variable or a record, in the computer's memory or in some other storage device.

Passing ArrayList as value only and not reference

Simply put, I have a method with an ArrayList parameter. In the method I modify the contents of the ArrayList …

java reference arraylist pass-by-reference
Are arrays or lists passed by default by reference in c#?

Do they? Or to speed up my program should I pass them by reference?

c# arrays reference
get_instance() in Codeigniter: Why assign it to a variable?

In Codeigniter, get_instance() is a globally available function that returns the Controller super-object which contains all the currently loaded …

php codeigniter singleton reference
Understanding a csproj assembly reference

I am using VS2010 and I tried to add a few assemblies from local hard disk to my C# project …

c# visual-studio-2010 reference .net-assembly csproj
Does foreach() iterate by reference?

Consider this: List<MyClass> obj_list = get_the_list(); foreach( MyClass obj in obj_list ) { obj.property = 42; } Is …

c# reference foreach
How to reference a different Java project in Eclipse

I have Project1 and Project2. Project1 is dependent of Project2. I am sort of tired that every time I make …

java eclipse reference project
How to reference generic classes and methods in xml documentation

When writing xml documentation you can use <see cref="something">something</see>, which works of course. …

c# generics reference xml-documentation
How do I ref a figure in LaTeX before it occurs?

I always like my figures to be placed in between text as opposed to the top or bottom of the …

latex reference figure
Initializing a reference to member to NULL in C++

Is it possible to initialize a reference member to NULL in c++? I'm trying to something like this: class BigClass { …

c++ reference initialization-list
reconstructing a tree from its preorder and postorder lists

Consider the situation where you have two lists of nodes of which all you know is that one is a …

algorithm language-agnostic reference tree traversal