How to use something similar to DynamicObject in Silverlight 3 / WP7?

The DLR can be used with WP7 Iron Ruby supports Windows Phone 7 from version 1.1 DynamicObject was available as an extension prior to . Net 4.0 If you're happy using a language other than C# then this could be an option There's a good article on using IronRuby on Windows Phone 7 at msdn.microsoft.com/en-us/magazine/ff9607... As an alternative, could you use anonymous types, rather than dynamic ones? I assume that there isn't an infinite number of options you're potentially binding to If you do want to use anonymous types you must set assembly: System.Runtime.

CompilerServices. InternalsVisibleTo("System. Windows") to enable the framework to resolve the bindings Presumably you're getting you dynamic objects from an external system.

Could you not add a wrapper layer between your app and the external system to turn the objects into POCOs rather than dynamic objects.

The DLR can be used with WP7. Iron Ruby supports Windows Phone 7 from version 1.1. DynamicObject was available as an extension prior to . Net 4.0 If you're happy using a language other than C# then this could be an option.

There's a good article on using IronRuby on Windows Phone 7 at msdn.microsoft.com/en-us/magazine/ff9607.... As an alternative, could you use anonymous types, rather than dynamic ones? I assume that there isn't an infinite number of options you're potentially binding to.

If you do want to use anonymous types you must set assembly: System.Runtime. CompilerServices. InternalsVisibleTo("System.

Windows") to enable the framework to resolve the bindings. Presumably you're getting you dynamic objects from an external system. Could you not add a wrapper layer between your app and the external system to turn the objects into POCOs rather than dynamic objects.

– Max Jan 5 at 12:35 1 @knom The IronRuby project includes a copy of Microsoft.Scripting. Core which contains DynamicObject You could try including a reference to this yourself. – Matt Lacey Jan 5 at 13:15.

As you mentioned, DLR with . Net 4.0 and C# 4.0 is not available in WP7. It means you can't do it.At least not easily.

Silverlight does not allow custom markup extensions (things between {}). So, that's not an option as well. What you could do is create custom Behaviors for binding and make them work with Dictionaries that can hold as many properties and values.

This is the problem.. I know the solution with behaviors.. but I don't like it THAT much.. What about the Dynamic Language Runtime (dlr.codeplex. Com), that DOES contain DynamicObject as well.. Does it work with SL3? – Max Jan 5 at 10:47.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions