[Mono-list] An object reference is required?
Xeno Campanoli
xeno at eskimo.com
Fri Oct 6 17:29:49 EDT 2006
I'm sorry if this should be obvious, but i'm not finding how to make
such an object reference. It's probably staring me right in the face.
I've got an object variable
private DoubleLinkedList StartNode;
which presumably I'd use a & on in C++,
and I want to assign a value to it from a variable that received the
results of a new instantiation. The diagnostic is:
BuildAndTraverseDLL.cs(58,6): error CS0120: `StartNode': An object
reference is required for the nonstatic field, method or property
BuildAndTraverseDLL.cs(58,6): error CS0131: Left hand of an assignment
must be a variable, a property or an indexer
from the compile, of course.
--
Support Instant Runoff Voting! YES ON 3:
1. Cut off Mudslinging Politics!
2. Bring back real Democracy!
More information about the Mono-list
mailing list