Мне нужно преобразовать System.Collections.Generic.IENumerable в System.Windows.Media.Imaging.BitmapImage
Я выбираю BitmapImage в синтаксисе LINQ
var localStore = from n in ((App)Application.Current).global_local_store//this Local_ImagesStore
where n.url == url
select n.bitmp;//BitmapImage
public struct Local_ImagesStore
{
public string url;
public BitmapImage bitmp;
}
Как мне конвертировать это?
Я не могу сделать это:
var result = new BitmapImage();
result=local_store;
return result;