Click here to Skip to main content
15,891,657 members
Home / Discussions / C#
   

C#

 
GeneralRe: codes Pin
OriginalGriff12-Feb-10 8:45
mveOriginalGriff12-Feb-10 8:45 
GeneralRe: codes Pin
DaveyM6912-Feb-10 12:05
professionalDaveyM6912-Feb-10 12:05 
GeneralRe: codes Pin
OriginalGriff12-Feb-10 22:18
mveOriginalGriff12-Feb-10 22:18 
AnswerRe: codes Pin
Pete O'Hanlon12-Feb-10 9:29
mvePete O'Hanlon12-Feb-10 9:29 
AnswerRe: codes Pin
Luc Pattyn12-Feb-10 9:47
sitebuilderLuc Pattyn12-Feb-10 9:47 
GeneralRe: codes Pin
Wes Aday12-Feb-10 12:19
professionalWes Aday12-Feb-10 12:19 
GeneralRe: codes Pin
Keith Barrow12-Feb-10 12:56
professionalKeith Barrow12-Feb-10 12:56 
AnswerRe: codes Pin
Keith Barrow12-Feb-10 12:54
professionalKeith Barrow12-Feb-10 12:54 
public void codez(int CodingNumber)
{ 
   if (CodingNumber <= 8000)
   {
      throw new Exception("No");
   }
   if (CodingNumber == 4000)
   {
      throw new Exception("No");
   }
   if(CodingNumber == 4001)
   {
      throw new Exception("No");
   }
   if(CodingNumber == 4002)
   {
      return;
   }

    //........
   if (CodingNumber == 8000)
   {
      throw new Exception("No");
   }
   if (CodingNumber >= 8000)
   {
      throw new Exception("No");
   }

}


The above code will work if you fill in the blank in the middle. Of course the code is abhorrent to anyone with eyes, but hopefully it will stop you from asking us to do your homework for you again. I could have done this on my Sinclair Spectrum, aged 10 years old in about ten minutes, so I fail to see why you haven't yet made an attempt to do this in the time you have repeatedly posted this question.
Antoine de Saint-Exupery: Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.

GeneralRe: codes Pin
ajay 201012-Feb-10 16:47
ajay 201012-Feb-10 16:47 
AnswerRe: codes Pin
Dave Kreskowiak12-Feb-10 13:28
mveDave Kreskowiak12-Feb-10 13:28 
GeneralRe: codes Pin
ajay 201012-Feb-10 16:48
ajay 201012-Feb-10 16:48 
GeneralRe: codes Pin
Richard MacCutchan12-Feb-10 22:29
mveRichard MacCutchan12-Feb-10 22:29 
GeneralRe: codes Pin
ajay 201013-Feb-10 7:07
ajay 201013-Feb-10 7:07 
GeneralRe: codes Pin
Richard MacCutchan13-Feb-10 7:29
mveRichard MacCutchan13-Feb-10 7:29 
GeneralRe: codes Pin
ajay 201013-Feb-10 16:37
ajay 201013-Feb-10 16:37 
QuestionCalling WCF service manually Pin
Ramkithepower12-Feb-10 6:50
Ramkithepower12-Feb-10 6:50 
AnswerRe: Calling WCF service manually Pin
Not Active12-Feb-10 7:03
mentorNot Active12-Feb-10 7:03 
QuestionTreeNode sorting problem Pin
Zaegra12-Feb-10 3:52
Zaegra12-Feb-10 3:52 
AnswerRe: TreeNode sorting problem Pin
Dan Mos12-Feb-10 8:23
Dan Mos12-Feb-10 8:23 
QuestionBackgroundWorker Pin
RugbyLeague12-Feb-10 3:29
RugbyLeague12-Feb-10 3:29 
AnswerRe: BackgroundWorker Pin
Luc Pattyn12-Feb-10 3:57
sitebuilderLuc Pattyn12-Feb-10 3:57 
GeneralRe: BackgroundWorker Pin
RugbyLeague12-Feb-10 4:01
RugbyLeague12-Feb-10 4:01 
GeneralRe: BackgroundWorker Pin
RugbyLeague12-Feb-10 4:31
RugbyLeague12-Feb-10 4:31 
AnswerRe: BackgroundWorker Pin
Luc Pattyn12-Feb-10 8:50
sitebuilderLuc Pattyn12-Feb-10 8:50 
GeneralRe: BackgroundWorker Pin
DaveyM6912-Feb-10 11:58
professionalDaveyM6912-Feb-10 11:58 

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.