Is there a better way getting the first element of IEnumerable type of this:
foreach (Image image in imgList)
{
picture.Width = (short)image.Columns;
picture.Height = (short)image.Rows;
break;
}
This is the exact declaration of the type:
public class ImageList : IEnumerable, IDisposable