-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Hello, and thanks again for this amazing funcionality. I successfully tested it on IOS and Android, but failed to get results on Windows Phone.
Looking at the source:
- Is there a reason for the Windows Phone project being outside the main solution?
- I can see that the project references a whole bunch of different files, different from all the other projects (that are linked to Desktop project), and seem to be missing?
- After some tests i realize that the Windows Phone implementation of a lot of the Reflection stuff common in all other projects seems to be quite different. If i target the project to Windows Phone 8.1 i get a lot of errors, if i try adding a simpler Windows Phone 8.0 target (the one i'm actually interested in), i get 2 errors:
a. ConcurrentDictionary -> Not available in Windows Phone 8.0
This is easily replaced by an ImmutableDictionary, refer to this:
http://stackoverflow.com/questions/18367839/alternative-to-concurrentdictionary-for-portable-class-library
b. In DynamicParameterInfo i get an error related to ParameterInfo, which doesn't have "a constructor that takes 0 arguments". Windows Phone "mscorlib" implementation shows ParameterInfo as an abstract class without a constructor (other platforms implementations have it), so the exact same code fails. Perhaps i'm missing something, but the boilerplate code for DictionaryModel and JsonModel must be a little different for Windows Phone.
If i ignore DictionaryModel and JsonModel entirely and stick just to LoadFromXaml reflection, (i used DependencyService to create my own method just to test Windows Phone version) it works without problems.
Bottom line: do you have any clue regarding that DynamicParameterInfo problem stated above? If we can resolve it, i think all the problems will be solved.
What do you think?
Thanks,
Nuno