How can I copy a variable which is of type IBuffer in C# (UWP app) to a string? The IBuffer itself doesn't seem to have any methods. It has Length which seems to be the correct value. But I cannot see the value in debugger (says requires Native debugging). Below is the class. I need to get Data.
public sealed class MagneticStripeReaderTrackData : IMagneticStripeReaderTrackData
{
public IBuffer Data { get; }
For example you can use it like this:
You can find same example here. https://msdn.microsoft.com/ru-ru/library/windows/apps/hh464978