The piece of code below gives me the warning:
Warning CS0618:
MonoTouch.Dialog.Section.Add(System.Collections.Generic.IEnumerable<MonoTouch.Dialog.Element>)' is obsolete:
Please use AddAll since this version will not work in future versions of MonoTouch when we introduce 4.0 covariance'
This is the code. I don't call Add()
explicitly. aMyReviewElements
is a List<Element>()
and I'm using the convenience initializers. Do I have to adjust my code (that will make the whole convenience unusable), or does MT.Dialog internally need a change?
...
List<Element> aMyReviewElements = new List<Element>();
...
new Section("My Reviews")
{
aMyReviewElements
},
...