c# - Get a distinct list of ids from IEnumerable<T> -
I have an IEnumerable that I want to get all the specific MaterialIDs. I have a code that is working, but I was wondering if using LINQ is a better way. Here I have the code:
Private IEnumerable & lt; Int & gt; GetDistinctMaterialIDs (IEnumerable & lt; TankReading & gt; Tank readings) {var specific content items = new list & lt; Int & gt; (); Foreign currency (Y tank readings in tank readings) {if different! Metiridides, canton (tank readings, metalid)) {Tank readings Metallurgy}; }} Specific Maliridides return; } Any help would be appreciated because I am learning how LINQ can help me.
tank readings. Selection (o = & gt; o metired). Undoubtedly ();
Comments
Post a Comment