.net - Why doesn't Windows Phone 7 fully support the C# specification? -


why doesn't windows phone 7 support c# specification when language available c#? okay, can understand lack of "dynamic" support, why isn't contra-covariance supported? why aren't third-party libraries familiar , use in server-desktop projects not compatible phone 7? what's sense in having intermediate il code if still end here?

bear in mind it's running on compact framework clr - doesn't have features of desktop clr.

edit: after bit of trawling, i've found generic variance isn't supported in compact framework (or @ least wasn't in 2005, , suspect hasn't been implemented since there's been little use until recently):

no support variance modifiers. though variance/co-variance forms part of overall ecma spec generics, , implemented full .net clr, not used in base class library or c# , vb.

okay, doesn't "fully support" c# 4 (the absolutely latest release), know of c# 3 language features aren't supported?

in terms of libraries, you're dealing framework based on silverlight 3 silverlight 4 bits, , various aspects of "desktop" silverlight removed. (edit: according link in comments, should contain all of apis of silverlight 3. i'm not sure whether that's accurate or not...) in other words, it's own beast, really. though il may portable, it's hard give guarantee of compatibility when various apis have been removed. however, in many cases can rebuild libraries target wp7. agree it's annoying have so, it's better them not being available @ all.

edit: citations claims uses cf clr:

windows phone 7 series developer general faq:

what technologies , tools can use program windows phone 7 series?
can use managed language c# using silverlight , xna based on compact framework.

can use windows forms?
no, windows forms not supported in version of compact framework included windows phone 7 series.

(and later)

can use xna library calls in silverlight?
silverlight , xna share common code base in compact framework. if call not gui based, in cases can shared between silverlight , xna.

a cf team member's blog post:

for developers coming windows phone 7 (wp7) windows desktop let me first clarify runtime (clr) running on wp7 not same 1 running on desktop. wp7 runtime known .net compact framework (netcf) , works differently “desktop clr”.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -