Am trying to integrate Branch.io in my Xamarin project and came across this requirement to convert c#\'s Dictionary to NSDictionary.
Tried
This is how i converted a dictionary to an NSDictionary
var iconattrs = new Dictionary
{
{"ITEMTYPE", "DIVESITE"},
{"LOCATION", diveSite.Location},
{"DESCRIPTION", diveSite.BriefDescription},
{"LINK", diveSite.Link},
{"ID", diveSite.ID.ToString()}
};
var myResult = NSDictionary.FromObjectsAndKeys(iconattrs.Values.ToArray()
,iconattrs.Keys.ToArray())