Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: Put App in System Tray Not Working Pin
Giorgi Dalakishvili15-Oct-08 7:07
mentorGiorgi Dalakishvili15-Oct-08 7:07 
QuestionCrystal report data Pin
Maddie from Dartford15-Oct-08 0:26
Maddie from Dartford15-Oct-08 0:26 
AnswerRe: Crystal report data Pin
Muhammad Shahid Farooq15-Oct-08 4:33
professionalMuhammad Shahid Farooq15-Oct-08 4:33 
AnswerRe: Crystal report data Pin
nelsonpaixao16-Oct-08 13:21
nelsonpaixao16-Oct-08 13:21 
QuestionTreeView mix combobox Pin
drcmomo15-Oct-08 0:23
drcmomo15-Oct-08 0:23 
Questionarray Pin
arkiboys14-Oct-08 23:57
arkiboys14-Oct-08 23:57 
AnswerRe: array Pin
Giorgi Dalakishvili15-Oct-08 0:07
mentorGiorgi Dalakishvili15-Oct-08 0:07 
AnswerRe: array Pin
Pete O'Hanlon15-Oct-08 0:11
mvePete O'Hanlon15-Oct-08 0:11 
arkiboys wrote:
Without using a for loop, how can I check if my string i.e. strMyString = "b"
is in one of the array list ?


Strictly speaking, you can't with an array, but you can simulate what you're trying to achieve using LINQ.
string[] arrNames = new string[6];
arrNames[0] = "x";
arrNames[1] = "c";
arrNames[2] = "v";
arrNames[3] = "b";
arrNames[4] = "n";
arrNames[5] = "m";

bool isFound = (from p in arrNames
  where p == "b"
  select true).SingleOrDefault();


Deja View - the feeling that you've seen this post before.

My blog | My articles | MoXAML PowerToys



GeneralRe: array Pin
J4amieC15-Oct-08 0:13
J4amieC15-Oct-08 0:13 
GeneralRe: array Pin
Pete O'Hanlon15-Oct-08 0:18
mvePete O'Hanlon15-Oct-08 0:18 
AnswerRe: array Pin
J4amieC15-Oct-08 0:12
J4amieC15-Oct-08 0:12 
AnswerRe: array Pin
#realJSOP15-Oct-08 0:28
professional#realJSOP15-Oct-08 0:28 
GeneralRe: array Pin
PIEBALDconsult15-Oct-08 1:56
mvePIEBALDconsult15-Oct-08 1:56 
GeneralRe: array [modified] Pin
#realJSOP15-Oct-08 2:25
professional#realJSOP15-Oct-08 2:25 
AnswerRe: array Pin
Chazzysb15-Oct-08 1:08
Chazzysb15-Oct-08 1:08 
AnswerRe: array Pin
leppie15-Oct-08 1:29
leppie15-Oct-08 1:29 
QuestionHow to create a calendar views in using C# win forms Pin
sivasankar anumula14-Oct-08 23:51
sivasankar anumula14-Oct-08 23:51 
AnswerRe: How to create a calendar views in using C# win forms Pin
Thomas Stockwell15-Oct-08 1:57
professionalThomas Stockwell15-Oct-08 1:57 
QuestionPopulating a DataSet table column with the value from a ComboBox? Pin
kanchoette14-Oct-08 23:47
kanchoette14-Oct-08 23:47 
AnswerRe: Populating a DataSet table column with the value from a ComboBox? Pin
kanchoette15-Oct-08 1:07
kanchoette15-Oct-08 1:07 
QuestionPLZ HELP!!!Not able to Delete the records from DB using NHibernate Pin
Puneet Bhatnagar14-Oct-08 23:39
Puneet Bhatnagar14-Oct-08 23:39 
AnswerRe: PLZ HELP!!!Not able to Delete the records from DB using NHibernate Pin
SeMartens14-Oct-08 23:52
SeMartens14-Oct-08 23:52 
QuestionWebbrowser Pin
hadad14-Oct-08 23:21
hadad14-Oct-08 23:21 
QuestionHow to log statement in MS SqlServer by ADONetAppender using Log4Net. Pin
Chintan.Desai14-Oct-08 23:14
Chintan.Desai14-Oct-08 23:14 
AnswerRe: How to log statement in MS SqlServer by ADONetAppender using Log4Net. Pin
Giorgi Dalakishvili14-Oct-08 23:23
mentorGiorgi Dalakishvili14-Oct-08 23:23 

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.