|
-
Jul 11th, 2005, 08:06 PM
#1
[RESOLVED] simple problem
creating my first c# project, i can't work out how to declare a variable as public.
Code:
public string name;
when i try the above code, it says "Invalid expression term 'public'".
-
Jul 11th, 2005, 08:32 PM
#2
Re: simple problem
You will get that error if you use scope modifiers within a method. Scope modifiers are only valid at class level.
-
Jul 11th, 2005, 08:39 PM
#3
Re: simple problem
thanks...
should have known that from vb.net.
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
|