Click here to Skip to main content
15,889,874 members
Home / Discussions / C#
   

C#

 
GeneralRe: Venue booking code in vb.net Pin
Verghese29-Aug-08 10:12
Verghese29-Aug-08 10:12 
GeneralRe: Venue booking code in vb.net Pin
Expert Coming29-Aug-08 10:32
Expert Coming29-Aug-08 10:32 
AnswerRe: Venue booking code in vb.net Pin
Wendelius29-Aug-08 10:31
mentorWendelius29-Aug-08 10:31 
QuestionCast Question Pin
Kevin Marois29-Aug-08 8:06
professionalKevin Marois29-Aug-08 8:06 
AnswerRe: Cast Question Pin
DaveyM6929-Aug-08 8:15
professionalDaveyM6929-Aug-08 8:15 
GeneralRe: Cast Question Pin
Kevin Marois29-Aug-08 8:30
professionalKevin Marois29-Aug-08 8:30 
AnswerRe: Cast Question Pin
Expert Coming29-Aug-08 8:21
Expert Coming29-Aug-08 8:21 
GeneralRe: Cast Question Pin
Kevin Marois29-Aug-08 8:28
professionalKevin Marois29-Aug-08 8:28 
The method onlny DOES do one thing. It searches the collection for a book.

It's private and only called by one of these 2 methods:
// Create the overloaded methods to find a book
public static Book FindBook(int iBookId)
{
	// Call the private method below to find the book
	return _FindBook(iBookId, "");
}

public static Book FindBook(String sAuthor)
{
	// Call the private method below to find the book
	return _FindBook(0, sAuthor);
}


Also, notice that in my original positing, once the book is found, it does a Break and drops out the to bottom, where the book is returned. This is in keeping with sound programming which calls for only 1 return from a method.

Everything makes sense in someone's mind

GeneralRe: Cast Question Pin
Expert Coming29-Aug-08 8:34
Expert Coming29-Aug-08 8:34 
GeneralRe: Cast Question Pin
Kevin Marois29-Aug-08 8:43
professionalKevin Marois29-Aug-08 8:43 
GeneralRe: Cast Question Pin
Expert Coming29-Aug-08 8:59
Expert Coming29-Aug-08 8:59 
GeneralRe: Cast Question Pin
Kevin Marois29-Aug-08 9:02
professionalKevin Marois29-Aug-08 9:02 
GeneralRe: Cast Question Pin
Expert Coming29-Aug-08 9:07
Expert Coming29-Aug-08 9:07 
AnswerRe: Cast Question Pin
Guffa29-Aug-08 8:29
Guffa29-Aug-08 8:29 
AnswerRe: Cast Question Pin
Scott Dorman29-Aug-08 8:45
professionalScott Dorman29-Aug-08 8:45 
GeneralRe: Cast Question Pin
Kevin Marois29-Aug-08 8:49
professionalKevin Marois29-Aug-08 8:49 
GeneralRe: Cast Question Pin
Scott Dorman29-Aug-08 8:59
professionalScott Dorman29-Aug-08 8:59 
AnswerRe: Cast Question Pin
Mbah Dhaim29-Aug-08 13:08
Mbah Dhaim29-Aug-08 13:08 
QuestionReceiving RS232 signals through USB Pin
Calvin Wong29-Aug-08 6:46
Calvin Wong29-Aug-08 6:46 
AnswerRe: Receiving RS232 signals through USB Pin
Dan Neely29-Aug-08 7:00
Dan Neely29-Aug-08 7:00 
AnswerRe: Receiving RS232 signals through USB Pin
Joe Woodbury29-Aug-08 11:47
professionalJoe Woodbury29-Aug-08 11:47 
Questionhow to build my own Outlook? Pin
Jassim Rahma29-Aug-08 5:22
Jassim Rahma29-Aug-08 5:22 
AnswerRe: how to build my own Outlook? Pin
Kevin Marois29-Aug-08 8:02
professionalKevin Marois29-Aug-08 8:02 
AnswerRe: how to build my own Outlook? Pin
Pete O'Hanlon29-Aug-08 8:40
mvePete O'Hanlon29-Aug-08 8:40 
GeneralRe: how to build my own Outlook? Pin
Jassim Rahma29-Aug-08 10:22
Jassim Rahma29-Aug-08 10:22 

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.