gurgeous/Pinta — comment on commit cfda36ef5ab97bd1d56ab08485040d2b42d0ff1a
File: Pinta/Actions/File/SaveDocumentImplementationAction.cs line 238
By cameronwhite:

This could be simplified by using the "Single" method from Linq, which grabs the only element in the list satisfying a condition:

using System.Linq;
...
FormatDescriptor format_desc = PintaCore.System.ImageFormats.Formats.Single (f => f.Filter == fcd.Filter);