|
-
Apr 25th, 2006, 02:22 PM
#1
Thread Starter
Hyperactive Member
[1.1] accessing a non-static member from a static method
Hi. I have a class with a static method. In the static method I want to access a non-static variable of the same class and when I try to do it directly, i'm getting this error message:
An object reference is required for the nonstatic field, method, or property 'Client.clTcpIp.MessToServer'
string MessToServer;
...
public static void method()
{
Access MessToServer....
}
Does anyone know how to solve this error?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|