IRandomAccessStream Reference convert to stream reference c#

Is there any method or anyway to convert IRandomAccessStreamReference to streamreference using c# in windows 8 metro apps???

Answers


If, by streamreference, you mean a class inheriting from Stream, there is the WindowsRuntimeStreamExtensions class which adds extension methods so that you can do things like:

Stream s = (await myFile.OpenReadAsync()).AsStreamForRead();

Need Your Help

Should we still care about ajax-crawling specification?

ajax seo web-crawlers single-page-application googlebot

It seems google crawlers run js. But documentations of ajax-crawling techniques are still available on Google Developers site.

Visual Studio debug symbol file (.pdb) default search locations

visual-studio-2010 debugging visual-studio-debugging debug-symbols pdb

I'm storing some artifacts, and I have .lib files and .dll files in separate subdirectories. Are .pdb files searched for based on the startup directory (like .dll files) or are they searched for ba...