I do next:
void Foobar(string[] arr, Dictionary<string, string[]>)
{
var t = arr.Intersect(dic.Keys).ToList(); // .or ToArray() ?
foreach(var item in t)
{
..
}
var j = t.Count; // also I need this
}
which method is preferred?
I could go without any but I need to know the size and I don't want to call IEnuramble.Count()
- it seems do do more actions then Array<T>.Size
or List<T>.Count
. Am I right?