I'm currently building a MonoTouch app, and want to share as much code as possible between it and any other future platforms. I figured the best way would be to use a PCL for the common code.
Problem goes that when I try and reference System.Collection.Generic.List<T> in my PCL library, MOnoDevelop highlights the List text in red (as if to say the reference can't be found), but when I build the project, the compiler has no problems and builds it normally...
For instance, I can have the following code in my PCL
and MD will compile this just fine, and this method can be consumed from my MT app.
However it's frustrating to work with as it's misleading me along the way into thinking that code which should compile won't, and I'm missing a lot of the benefits of IntelliSense.
I've tried the solution listed about switching the compiler, but that hasn't helped. Hope someone has suggestions on how to fix this?
For interests sake, here's what intellisense gives me for the System.Collections.Generic namespace (there's one item out of view in that list - Stack<T>)
Should also mention that i'm using MonoDevelop v3.0.5, Mono v2.10.9, MT v6.0.6