using System.Collections.Generic;
using System.Linq;

namespace Valg.EVA.Skanning.Scan.ReadSoftContracts.Model
{
    public class TreatStampIndexedFieldAsOneSpecification : ITreatIndexedFieldAsOneSpecification
    {
        
        
        
        public ScannedField SelectIndexedField(List<ScannedField> fields)
        {
            return fields.OrderByDescending(f => int.Parse(f.Value)).First();
        }
    }
}
