# WP7 limitations

**URL:** <https://www.ruby-forum.com/t/wp7-limitations/214752>\
**Category:** IronRuby\
**Created:** [December 11, 2011, 5:38pm UTC](https://www.ruby-forum.com/t/wp7-limitations/214752 "2011-12-11T17:38:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [December 11, 2011, 5:38pm UTC](https://www.ruby-forum.com/t/wp7-limitations/214752/1 "2011-12-11T17:38:00Z")

</div>

Hi,

In the article from 2010, Tomáš was describing the limitations on WP7:

> **[IronRuby on Your Phone](https://matousek.wordpress.com/2010/03/21/ironruby-on-your-phone/)**
>
> Windows Phone 7 application platform was finally revealed at MIX10. It generated a lot of excitement among .NET developers presumably due to the fact that it’s based on Silverlight. No need to lear…

“The most significant are calls to methods with out or ref parameters.  
You also won’t be able to inherit a Ruby class from a CLR class or  
implement a CLR interface since that requires us to emit a proper CLR  
type. We are going to address both of these limitations in future  
versions.”

Are these two addressed in the latest version of IronRuby for WP7?

Thanks!

---

<div class="post-metadata">

**Author:** ![andrei\_n](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9e8a1a/32.png) [@andrei\_n](https://www.ruby-forum.com/u/andrei_n)\
**Post date:** [December 11, 2011, 8:30pm UTC](https://www.ruby-forum.com/t/wp7-limitations/214752/2 "2011-12-11T20:30:22Z")

</div>

This still is not supported in IronRuby, as the version of the CLR on  
the Windows Phone (at least last i checked) was really the compact  
framework, which does not support any types usually found in the full  
.NET Framework’s System.Reflection.Emit namespace. Therefore, IronRuby  
cannot emit the correct backing class. The ref params is also a CF  
limitation.

We were thinking of doing some static analysis to generate C# code  
which when compiled would produce the required static types, and then  
know to use those as backing types, but any static analysis solution  
would not always work in a dynamic language.

I haven’t used WP7 devtools in a while, so I’d be curious if the  
Ref.Emit limitation still exists in Mango, but I suspect it is still  
an issue.

~Jimmy

---

<div class="post-metadata">

**Author:** ![andrei\_n](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9e8a1a/32.png) [@andrei\_n](https://www.ruby-forum.com/u/andrei_n)\
**Post date:** [December 20, 2011, 10:11am UTC](https://www.ruby-forum.com/t/wp7-limitations/214752/3 "2011-12-20T10:11:26Z")

</div>

Hi James!

System.Reflection.Emit is available in Mango, partially

> **[Mango and System.Reflection.Emit – new optimizations in RadC](https://www.telerik.com/blogs/mango-and-system-reflection-emit-new-optimizations-in-radcontrols-for-windows-phone)**
>
> One of the tasty new features of the new “Mango” update of the Windows Phone developer tools is the presence of System.Reflection.Emit. This allows us, develope

> **[Windows previous versions documentation](https://learn.microsoft.com/en-us/previous-versions/windows/?redirectedfrom=MSDN)**
>
> Find links to Help for older versions of the Windows products and services.

DynamicMethod, ILGenerator and OpCodes looks like they are fully  
supported.

What do you think?

Jurassic for example has made his way on WP7.

---

<div class="post-metadata">

**Author:** ![andrei\_n](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9e8a1a/32.png) [@andrei\_n](https://www.ruby-forum.com/u/andrei_n)\
**Post date:** [January 4, 2012, 5:20am UTC](https://www.ruby-forum.com/t/wp7-limitations/214752/4 "2012-01-04T05:20:15Z")

</div>

I changed Silverlight 3 configuration to build against Mango reference  
assemblies a couple of days ago. I’ll rename Silverlight3 configuration  
to WP75 soon 🙂  
Haven’t tested if it works (at runtime) but it at least builds 🙂

IronRuby now also builds against Silverlight 5 and MonoAndroid. Nothing  
is tested though, help with testing on all these platforms is very  
welcome. Support for Windows 8 might also be available soon - perhaps  
with the next public preview release of Windows 8.

Tomas
