Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the IBuffer byte[].AsBuffer extension method?

During build they mentioned that to get an IBuffer, there's an extension method on byte arrays called AsBuffer(). Unfortunately they didn't mention what namespace it's hiding in, and doesn't seem to be in the many I've added. Has anyone found where it's hiding at?

like image 938
ermau Avatar asked Sep 17 '11 20:09

ermau


1 Answers

The namespace is System.Runtime.InteropServices.WindowsRuntime.

VS Object Browser is your friend here - just be sure to set the framework switcher accordingly. For .NET libraries available in Metro apps, you want ".NET Framework Core 4.5".

like image 132
Pavel Minaev Avatar answered Oct 12 '22 23:10

Pavel Minaev