I am building new application for Desktop, Windows 8 store and Windows phone at the same time. so I created Portable Class library to have common functionality across all pl
To provide some info about my comment use Type.GetMethod.
Metadata from Type
When evaluating metadata returned from
System.Typemethods and properties, the equality operator may return different results on different platforms. In the .NET Compact Framework, each successive call to theType.GetMethodmethod returns a new instance ofSystem.Reflection.MethodInfo, so return values are never evaluated as equal. However, in the .NET Framework 4, callingGetMethodwith the same parameters returns the same instance of MethodInfo. You must review and potentially modify your code when you are working with the following System.Reflection types:MethodInfo,FieldInfo,PropertyInfo,EventInfo,MemberInfo,MethodBase,ConstructorInfo, andParameterInfo.
Reflection on Open Generic Types
On Windows Phone 7, reflection is supported on closed generic types; however, most reflection operations are not supported on open generic types. On open generic types, only the following reflection operations are supported for Windows Phone 7: Retrieving an open generic type or method by calling the
GetTypeorGetMethodsmethod. Creating a generic type or method from an open generic type or method by calling theMakeGenericTypeorMakeGenericMethodmethod. For all other reflection operations on open generic types, aNotSupportedExceptionexception is thrown.
Source: http://msdn.microsoft.com/en-us/library/gg597392.aspx