Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
SuggestionRe: postback issue with dynamically created datetimepicker using javascript Pin
Richard MacCutchan4-Dec-14 5:01
mveRichard MacCutchan4-Dec-14 5:01 
GeneralRe: postback issue with dynamically created datetimepicker using javascript Pin
Dhyanga4-Dec-14 8:04
Dhyanga4-Dec-14 8:04 
QuestionHow to find a particular embedded resource in an assembly? Pin
Sivaji15654-Dec-14 1:08
Sivaji15654-Dec-14 1:08 
SuggestionRe: How to find a particular embedded resource in an assembly? Pin
Richard MacCutchan4-Dec-14 2:06
mveRichard MacCutchan4-Dec-14 2:06 
QuestionC# Error check Pin
Member 112847343-Dec-14 18:06
Member 112847343-Dec-14 18:06 
AnswerRe: C# Error check Pin
Manfred Rudolf Bihy3-Dec-14 18:20
professionalManfred Rudolf Bihy3-Dec-14 18:20 
GeneralRe: C# Error check Pin
Member 112847343-Dec-14 18:34
Member 112847343-Dec-14 18:34 
GeneralRe: C# Error check Pin
Manfred Rudolf Bihy3-Dec-14 19:53
professionalManfred Rudolf Bihy3-Dec-14 19:53 
Member 11284734 wrote:
is there a way to avoid using null?

Why would you want to do that?
Please explain in detail!

Your code (if it even is your code which I'm now beginning to seriously doubt) uses the check for null explicitly so that would be the way to go.
You could of course use a special instance of whatever class ( it is not shown in your code sample) to signify that the searchString wasn't found, but that special instance also would have to be assigned to searchValue every time somewhere at the top of the loop before coig through the array comparing searchString against studentName.

Regards,

Manfred

"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian


AnswerRe: C# Error check Pin
Harsh Athalye5-Dec-14 0:14
Harsh Athalye5-Dec-14 0:14 
QuestionHow to copy a file from my computer to a shared folder of another computer with login username and password account Pin
Derz3-Dec-14 14:58
Derz3-Dec-14 14:58 
AnswerRe: How to copy a file from my computer to a shared folder of another computer with login username and password account Pin
PIEBALDconsult3-Dec-14 16:23
mvePIEBALDconsult3-Dec-14 16:23 
Questioninvalid length for a base-64 char array or string Pin
Jassim Rahma3-Dec-14 11:35
Jassim Rahma3-Dec-14 11:35 
SuggestionRe: invalid length for a base-64 char array or string Pin
Richard MacCutchan3-Dec-14 20:56
mveRichard MacCutchan3-Dec-14 20:56 
GeneralRe: invalid length for a base-64 char array or string Pin
Jassim Rahma3-Dec-14 22:27
Jassim Rahma3-Dec-14 22:27 
GeneralRe: invalid length for a base-64 char array or string Pin
Richard MacCutchan3-Dec-14 22:38
mveRichard MacCutchan3-Dec-14 22:38 
QuestionSetting an instance object equal to my empty string. Pin
Member 112838693-Dec-14 8:00
Member 112838693-Dec-14 8:00 
GeneralRe: Setting an instance object equal to my empty string. Pin
PIEBALDconsult3-Dec-14 8:07
mvePIEBALDconsult3-Dec-14 8:07 
GeneralRe: Setting an instance object equal to my empty string. Pin
Shweta N Mishra3-Dec-14 21:21
professionalShweta N Mishra3-Dec-14 21:21 
QuestionHow to send cell value from DataGrid to text file? Pin
Member 100245173-Dec-14 5:01
Member 100245173-Dec-14 5:01 
SuggestionRe: How to send cell value from DataGrid to text file? Pin
ZurdoDev3-Dec-14 5:14
professionalZurdoDev3-Dec-14 5:14 
AnswerRe: How to send cell value from DataGrid to text file? Pin
Richard MacCutchan3-Dec-14 6:31
mveRichard MacCutchan3-Dec-14 6:31 
GeneralRe: How to send cell value from DataGrid to text file? Pin
Member 100245173-Dec-14 7:41
Member 100245173-Dec-14 7:41 
QuestionCreate Hotel Room Booking Calendar Pin
KissGnv2-Dec-14 23:44
KissGnv2-Dec-14 23:44 
AnswerRe: Create Hotel Room Booking Calendar Pin
ixilom3-Dec-14 1:35
ixilom3-Dec-14 1:35 
GeneralRe: Create Hotel Room Booking Calendar Pin
KissGnv3-Dec-14 3:05
KissGnv3-Dec-14 3:05 

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.