How to get the first element of IEnumerable

后端 未结 5 2031
情书的邮戳
情书的邮戳 2020-12-29 06:34

Is there a better way getting the first element of IEnumerable type of this:

foreach (Image image in imgList)
{
     picture.Width = (short)image.Columns;
           


        
5条回答
提交回复
热议问题