I want to use the First<TSource> extension method to find the first occurence of a specific object in a List<> I have, but it might not be in the list, and I don’t want it throwing me an exception because I don’t believe it’s good practice having an empty catch scope, so I just want it to return null instead.
Is this possible ?
You can use FirstOrDefault.