My code:
var Result = from TempRow in ArrAbsDiff where TempRow.Strike == StrikeOfMinAbsDiff select TempRow.PutMidPrice; I know that the above code return just one value of type decimal (maybe double). However, Result is of type Enumerable and I could not easily write Result + 2. I need to convert it property. I can do it through the following code:
var Result = (from TempRow in ArrAbsDiff where TempRow.Strike == StrikeOfMinAbsDiff select TempRow.PutMidPrice).Min(); Is there more efficient way to accomplish it?
Regards,