I am looking at the ServiceStack.UseCases application, specifically the ImageResizer project. The code in Global.asax references an extension method called SafeConvertAll, which does not appear to be a part of SS any longer. What happened to this function and what should I use to replace it?
Thanks
It's just a safe wrapper around
ConvertAll
to treatnull
collections as empty collections, it's been replaced with a much shorterMap()
alias, e.g:You can also use
.Safe()
to return an empty collection fornull
collections letting you safely use LINQ extension methods like.Select()
, e.g:ImageResizer has just been upgraded to v4.0.40 in this commit.