Ported to .NET MF 4.2