KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have an ArrayList that import records from a database. Is there any method to check whether the arrayList contains schname that i want to match to another list which is an api? List<PrimaryClass> primaryList = new List<PrimaryClass>(e.Result); PrimaryClass sc = new PrimaryClass(); foreach (string item in str) { for (int a = 0; a <= e.Result.Count - 1; a++) { string schname = e.Result.ElementAt(a).PrimarySchool; string tophonour = e.Result.ElementAt(a).TopHonour; string cca = e.Result.ElementAt(a).Cca; string topstudent = e.Result.ElementAt(a).TopStudent; string topaggregate = e.Result.ElementAt(a).TopAggregate; string topimage = e.Result.ElementAt(a).TopImage; if (item.Contains(schname)) { } } } This is what I have come up with so far, kindly correct any errors that I might have committed. Thanks.
Tags (comma-separated)
Save Edits
Cancel