
August 8, 2009 08:42 by
Simon
To create a property in IronPython (equivalent to a C# property) you need to create the get and set functions and then pass them into the in built property() function and assign the result to a variable with the name of the property you wish to create. For example, the code below defines a getter:More...
732ab072-d40a-4953-b2aa-421143682139|0|.0

June 14, 2009 21:42 by
Simon
This is again IronPython 101, but again took me a little bit of time to work out how to do it. Consider the following C# delegate and method:More...
88be09ff-cc08-4a2d-90ce-01e00fe0752d|0|.0

June 14, 2009 21:33 by
Simon
This is really IronPython 101 but this was a really difficult thing to find by Googling! There are also examples in IronPython in Action but again, searching for them if you're not sure what you're searching for won't get you very far. The solution is pretty similar to how you would do it in C:More...
427dd50e-91d9-4652-811b-e9b83ced9f9c|0|.0

April 8, 2009 19:35 by
Simon
I had a requirement to create a state machine for a product at work. The product is a project management tool and therefore has the concept of a job which based on the users actions moves from one state to another. There was also the additional requirement that the state machine should be configurable by/for different customers. Esentially, the state machine is a large flow diagram but the implementation needed to allow for completely ripping up the first customers flow diagram and replacing it with a completely different one for the next customer.More...
9af53553-46c8-469c-83b4-27c55763ec2a|0|.0