I am try to find the index of a list returned by Manatee but i am unable to figure it out.
var TrelloList = Trelloboard.Lists;
var XML = Trelloboard.Lists[2].Cards[0].Description;
Console.WriteLine(TrelloList.IndexOf("Swim Lane"));
The collections in Manatee.Trello all implement
IEnumerable<T>
. As such, all Linq operations will work on them.If you want to find your list:
If it's really the index of the list you're after, you can enumerate the collection to a
List<T>
and then use the.IndexOf()
method as you have in your example.You might also want to read the wiki pages for more information on using this library.