[This is very difficult for Google.]
Looking through the sample code, I see a usage that I don't understand:
var orderRow = order.Rows.Single();
The strings are enumerable, and they will usually be iterated using the foreach loop. Is the only one. A workaround for cases where for some reason foreach cannot (or is not necessary) be used?
THX
In the time since OP, I learned a little more about a usage that will help other hits in this matter:
var option = options.OfType<AdditionalLocationsOption>().SingleOrDefault();
if (option != null){
...stuff
}
source
share