You are viewing our Forum Archives. To view or take place in current topics click here.
Need some help. C#
Posted:

Need some help. C#Posted:

Boogeyman_
  • TTG Natural
Status: Offline
Joined: Aug 06, 201113Year Member
Posts: 935
Reputation Power: 36
Status: Offline
Joined: Aug 06, 201113Year Member
Posts: 935
Reputation Power: 36
I'm trying to make this program and I get an error in the console ouput saying,

(1,6): warning CS105: The using directive for `System' appeared previously in this namespace
(1,3): warning CS105: The using directive for `System.Collections.Generic' appeared previously in this namespace
(1,3): warning CS105: The using directive for `System.Linq' appeared previously in this namespace
(1,31): error CS1514: Unexpected symbol `end-of-file', expecting `.' or `{'
Xamarin.Interactive.Mono.CSharp.FatalException: Unexpected symbol `end-of-file', expecting `.' or `{'
at Xamarin.Interactive.Mono.CSharp.Report.Error (Int32 code, Location loc, System.String error) [0x00000] in <filename unknown>:0
at Xamarin.Interactive.Mono.CSharp.Report.Error (Int32 code, Location loc, System.String format, System.String arg) [0x00000] in <filename unknown>:0
at Xamarin.Interactive.Mono.CSharp.CSharpParser.case_26 () [0x00000] in <filename unknown>:0
at Xamarin.Interactive.Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000] in <filename unknown>:0
at Xamarin.Interactive.Mono.CSharp.CSharpParser.parse () [0x00000] in <filename unknown>:0


Need some help with this, I'm currently using a mac.
#2. Posted:
ip
  • Christmas!
Status: Offline
Joined: Dec 30, 201212Year Member
Posts: 3,778
Reputation Power: 3016
Status: Offline
Joined: Dec 30, 201212Year Member
Posts: 3,778
Reputation Power: 3016
Looks to me that you are missing either a parenthesis or bracket. The first error 'end of file' usually means that you have too many or too few brackets.
#3. Posted:
Skittle
  • TTG Commander
Status: Offline
Joined: Aug 20, 201410Year Member
Posts: 6,813
Reputation Power: 413
Status: Offline
Joined: Aug 20, 201410Year Member
Posts: 6,813
Reputation Power: 413
I have also noticed that with the first three lines of the stack trace you have used the 'using System', 'using System.Generics.Collection' and 'using System.Linq' twice in your code. The only place that should appear is the very top of the code outside any namespaces.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.