A
avivgood
Guest
I am pretty new to generics, and I want a simple function that takes In generic list and a generic item and returned whether the item is in the list (yes, I this is possible using the any() and other linq methods but I want to do more things in that function but just check if the item exists)
I have tried to use:
private static bool IsExist(List<T> list, T item)
{
//code comes here...
}
But I get an error.
why Isn't it working?
Continue reading...
I have tried to use:
private static bool IsExist(List<T> list, T item)
{
//code comes here...
}
But I get an error.
why Isn't it working?
Continue reading...