fuzzyman at voidspace.org.uk
Sun Mar 1 08:27:18 PST 2009
Jimmy Schementi wrote:
> Kristian wrote:
>> Just curios... Has anyone had time to look at my sample yet?
> Yes, and sorry for the horrifically late reply ...
> source is here:
> There was a few small changes I made to Michael's code:
> 1. The Python code used to load the C# assembly will fail, since there's no namespace defined as Scriptable. It should be change to:
> import ScriptableForString
> ... and "Scriptable.dll" doesn't need to be added to the AppManifest.xaml, just needs to be present in the XAP. I use clr.AddReferenceToFile because clr.AddReference or clr.AddReferenceByName can fail depending on whether or not Microsoft.Scripting.Silverlight.dll is signed (which can differ if you get the bits from codeplex or build them yourself from github), because you didn't give the fully-qualified assembly name.
> 2. The SomeClass class needs to take new_string as a parameter, instead of "string"
> 3. There are both "some_class" and "someClass" variables, but there are intended to mean the same thing. So I changed them all to "someClass".
> 5. http://jimmy.schementi.com/silverlight/scriptable/csharp/scriptable.cs MSDN documentation said that events need to be marked with ScriptableMemberAttribute, rather than ScriptableMember. I don't think I makes a difference ...
Thanks Jimmy - I'll look at these changes and incorporate them back into
> Users mailing list
> Users at lists.ironpython.com
More information about the Users