Wrox Programmer Forums
|
BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8
This is the forum to discuss the Wrox book Professional C# 2008 by Christian Nagel, Bill Evjen, Jay Glynn, Morgan Skinner, Karli Watson; ISBN: 9780470191378
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 17th, 2008, 10:58 AM
Registered User
 
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ScopeTest2.cs does not compile

I tried it with both the command line compiler and visual studio.
It gets hung up on the ConsoleWrite(j); under the class ScopeTest2.
The error is as follows

ScopeTest2.cs(8,34): error
CS1519: Invalid token '(' in class, struct, or interface member declaration
ScopeTest2.cs(8,36): error
CS1519: Invalid token ')' in class, struct, or interface member declaration

I delete the ConsoleWrite(j); statement and it compiles fine.
I also tried replacing ConsoleWrite(j); with j = j + 1; and it didn't like that either.

I'm thinking that this section of code is for defining and initializing variables and not for operations.

Today is my first day with C# so I'm looking for help.
Thanks
 
Old March 4th, 2011, 08:02 AM
Authorized User
 
Join Date: Mar 2011
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Could you please post the code ::: Waiting for response





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to compile - First.cs gau404 BOOK: Professional C#, 2nd and 3rd Editions 1 November 14th, 2005 03:19 AM
Enums.cs allanhu BOOK: ASP.NET Website Programming Problem-Design-Solution 3 November 2nd, 2004 10:37 PM
AssemblyInfo.CS Compile Error zamankazi BOOK: ASP.NET Website Programming Problem-Design-Solution 2 October 22nd, 2004 08:31 AM
Cannot compile siteheader.ascx.cs golfvilla BOOK: ASP.NET Website Programming Problem-Design-Solution 6 January 19th, 2004 06:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.