Click here to Skip to main content
15,887,430 members
Home / Discussions / C#
   

C#

 
Questionsetup error in c# Pin
User349024-Apr-13 4:11
User349024-Apr-13 4:11 
AnswerRe: setup error in c# Pin
Keith Barrow24-Apr-13 5:05
professionalKeith Barrow24-Apr-13 5:05 
QuestionCallBack to consumer using RESTful / MVC / WCF Pin
jexes23-Apr-13 22:51
jexes23-Apr-13 22:51 
QuestionProgramming a Symbol Handheld Scanner Pin
bob18123-Apr-13 20:57
professionalbob18123-Apr-13 20:57 
AnswerRe: Programming a Symbol Handheld Scanner Pin
Pete O'Hanlon23-Apr-13 21:29
mvePete O'Hanlon23-Apr-13 21:29 
AnswerRe: Programming a Symbol Handheld Scanner Pin
Joe Woodbury24-Apr-13 8:19
professionalJoe Woodbury24-Apr-13 8:19 
Questionprinting students grades after finding them in files.. Pin
Magda634723-Apr-13 9:30
Magda634723-Apr-13 9:30 
AnswerRe: printing students grades after finding them in files.. Pin
Eddy Vluggen23-Apr-13 9:36
professionalEddy Vluggen23-Apr-13 9:36 
C#
  1  using System;
  2  using System.IO;
  3   
  4  namespace IntroCS
  5  {
  6  class GradeFiles
  7  {
  8   
  9  public static void Main(string[] args)
 10  {
 11   
 12  
 13  
 14  
 15  
 16  
 17  public static int codeIndex(string code, string[] categories)
 18  {

You've declare a method on line 9, it's body starting on line 10. Line 17 is a new method; you can't put a method in another method. Put a "}" on line 12, and call your method on line 11 Smile | :)
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

QuestionWhich one is overriding and which one is overloading Pin
Arun kumar Gautam23-Apr-13 2:55
Arun kumar Gautam23-Apr-13 2:55 
AnswerRe: Which one is overriding and which one is overloading Pin
Keith Barrow23-Apr-13 3:07
professionalKeith Barrow23-Apr-13 3:07 
AnswerRe: Which one is overriding and which one is overloading Pin
ZurdoDev23-Apr-13 9:08
professionalZurdoDev23-Apr-13 9:08 
AnswerRe: Which one is overriding and which one is overloading Pin
Clifford Nelson24-Apr-13 14:23
Clifford Nelson24-Apr-13 14:23 
AnswerRe: Which one is overriding and which one is overloading Pin
Arun kumar Gautam24-Apr-13 19:22
Arun kumar Gautam24-Apr-13 19:22 
GeneralRe: Which one is overriding and which one is overloading Pin
Keith Barrow24-Apr-13 23:29
professionalKeith Barrow24-Apr-13 23:29 
GeneralRe: Which one is overriding and which one is overloading Pin
Arun kumar Gautam25-Apr-13 1:57
Arun kumar Gautam25-Apr-13 1:57 
GeneralRe: Which one is overriding and which one is overloading Pin
Keith Barrow25-Apr-13 2:05
professionalKeith Barrow25-Apr-13 2:05 
GeneralRe: Which one is overriding and which one is overloading Pin
Arun kumar Gautam25-Apr-13 20:24
Arun kumar Gautam25-Apr-13 20:24 
GeneralRe: Which one is overriding and which one is overloading Pin
Keith Barrow25-Apr-13 22:16
professionalKeith Barrow25-Apr-13 22:16 
AnswerRe: Which one is overriding and which one is overloading Pin
Clifford Nelson25-Apr-13 16:27
Clifford Nelson25-Apr-13 16:27 
QuestionChanging the "user" configuration file Pin
Boris The Bold23-Apr-13 2:26
Boris The Bold23-Apr-13 2:26 
AnswerRe: Changing the "user" configuration file Pin
SledgeHammer0123-Apr-13 4:55
SledgeHammer0123-Apr-13 4:55 
GeneralRe: Changing the "user" configuration file Pin
Boris The Bold23-Apr-13 22:56
Boris The Bold23-Apr-13 22:56 
GeneralRe: Changing the "user" configuration file Pin
SledgeHammer0124-Apr-13 4:45
SledgeHammer0124-Apr-13 4:45 
GeneralRe: Changing the "user" configuration file Pin
Boris The Bold24-Apr-13 4:54
Boris The Bold24-Apr-13 4:54 
GeneralRe: Changing the "user" configuration file Pin
SledgeHammer0124-Apr-13 6:40
SledgeHammer0124-Apr-13 6:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.