Rico Suter Rico Suter - 1 year ago 110
C# Question

Missing Type.GetProperty() method in Windows 8 Developer Preview

I'm trying to port a simple application to Windows 8 Metro (WinRT). It seems that some very basic methods are missing. One basic example:

. It is available for Windows Phone 7, Silverlight and .NET client profile. Do I have to install something (eg. a special library) or is this method simply not available in the .NET metro profile?


OK, thank you. Now I use

using System.Reflection;
is needed to have this
extension method.

Answer Source

Reflection has changed a bit in Metro: see MSDN ( "Reflection changes" - near the bottom ).

Basically, you now need: type.GetTypeInfo().

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download