string[] myStrings = { "A", "B", "testValue" };
string test = "testValue";
string result = Array.Find(myStrings, delegate(string s) { return s == test; });
Console.WriteLine("Result: " + result);

 

 

int nContentsNumber = Array.FindIndex(Global_This.clContentsAll[_nWebhardNumber].clContentsList, clContentsList => clContentsList.s번호 == sNumber);

'c샵' 카테고리의 다른 글

webBrowser.Document.InvokeScript  (0) 2017.05.08
C# 문자열 분리방법  (0) 2017.05.08
C# 랜덤 소숫점  (0) 2017.05.04
C# dataGridView 에서 DragEventArgs 를 RowIdex 변환  (0) 2017.04.29
C# 클래스 배열 정렬 방법  (0) 2017.04.24

+ Recent posts