Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / October 2005

Tip: Looking for answers? Try searching our database.

cannot use unicode in variable names

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cody - 20 Oct 2005 14:18 GMT
for example i cannot use the dollar-sign or the euro-sign in a variable name
although c# itself allows it.
is this a bug?
Oliver Sturm - 20 Oct 2005 17:24 GMT
>for example i cannot use the dollar-sign or the euro-sign in a variable
>name although c# itself allows it.
>is this a bug?

What do you mean "although c# itself allows it"? Reading the C# language
specs, section 2.4.2 defines an "identifier" as C# allows it. Valid
characters are defined by Unicode character classes, and while Nd is
included (a simple digit), Sc (currency symbols) is not in the list.

               Oliver Sturm
Signature

Expert programming and consulting services available
See http://www.sturmnet.org (try /blog as well)

cody - 20 Oct 2005 19:00 GMT
Sorry I was wrong about that, I noticed that $ signs can be used in
identifiers in J#.NET so I assumed this would be true for C# as well.

>>for example i cannot use the dollar-sign or the euro-sign in a variable
>>name although c# itself allows it.
[quoted text clipped - 6 lines]
>
>                Oliver Sturm

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.