Exception when trying to read null string in C# WinRT component from WinJS
问题 I have the following scenario: Data lib in C# compiled as a Windows Runtime component. One of its classes is looks like this: public sealed class MyData { string TheGoods { get; private set;} } The UI is in WinJS, and I have the following: var b = dataInstance.theGoods; The problem is that I get an exception and property has the following in it: System.ArgumentNullException at System.StubHelpers.HStringMarshaler.ConvertToNative(String managed) Looking at the implementation of HStringMarshaler