I have created Portable Library project called SamplePL.dll with some xaml pages and refered in native iOS project. I need to create instance for xaml pages of SampleDL.dll dynamically using reflection.
I used Linker options(Linker SDK assemblies only/Linker all assemblies) when I build native iOS.
For that, I referred one of the page of SamplePL.dll as below code snippet in AppDelegate.cs FinishedLaunching method,
var obj= typeof(SamplPLXamlClass);
I used the code to create instance dynamically using reflection as below,
But this shows error like
Default constructor not found in SamplePL.SampleNewXamlClass, in Activator.CreateInstance(....)
I have missed anything? or Is there any other way to implement Linker concept in PCL? If I get solution for this, it will be more helpful to reduce size of our project deliverable. Thanks in advance.