xamarin android

Xamarin Android : Why the loosely typed key value pair implementation for Intent extra data is bad! And why it should be looser…

An usual way to go about adding extra data to your Intents in Xamarin is by using the convenience methods provided such as : data.PutExtra(“Key1”, “key”); data.PutExtra(“Key2”, 33); And on the receiving end you’d use: var value1 = data.Extras.GetString(“Key1”); var value2 = data.Extras.GetInt(“Key2”); It all sounds very good in theory, however, anti-pattern discussions aside regarding […]

0 Comment