How to convert Object variable type into a string
My simple code
- void Polygon_Clicked(object sender, EventArgs e) {
- try {
- var tempData =(Polygon)sender;
- var data = tempData.BindingContext; }
- catch (Exception exp)
- {
- DisplayAlert("Error", $"Oops! Something went wrong. {exp.Message}", "OK");
- }
- }
How to convert the following line of code to a list
- var data = tempData.BindingContext;

Joginder BangerRank #360 · 7K reputationPosted Feb 11, 2020, 10:38 PM EST
Dinesh GabhaneRank #265 · 9.5K reputationPosted Feb 11, 2020, 10:38 PM EST
Thamsanqa Ngcongwane176 reputationPosted Feb 12, 2020, 12:53 AM EST