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