locked
When enable "Compile with .net native tool chain" the reflection will fail ,how to resolve it RRS feed

  • Question

  • I wrote a UWP app ,and added the following code ,then enable "Compile with .net native tool chain" ,it will return null.

    here is the code snippet;

    void Test()

    {

    PropertyInfofieldInfo = typeof(Delegate).GetTypeInfo().GetDeclaredProperty("Method");

    }

    fieldInfo will be null .

    Seems need to modify default.rd.xml ,but whatever I modified ,it always failed . How to resolve it ?

    Thanks very much


    gamila

    Monday, December 21, 2015 2:36 AM