c# - convert between types image in silverlight wp7 -


i need convert system.collections.generic.ienumerable system.windows.media.imaging.bitmapimage select bitmapimage in linq syntax

var localstore = n in ((app)application.current).global_local_store//this local_imagesstore                                n.url == url                                select n.bitmp;//bitmapimage  public struct local_imagesstore         {             public string url;             public bitmapimage bitmp;         } 

how convert this? can't this:

var result = new bitmapimage(); result=local_store; return result; 

you receive bitmapimage collection.

var result = new bitmapimage(); result=local_store.firstordefault(); return result; 

should work.

check: http://msdn.microsoft.com/en-us/library/bb340482.aspx

disclaimer: never wrote silverlight wp7.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -