Simon Taylor - .Net developer, Cheltenham

My record of coding problems solved and new things discovered

IronPython: Properties

clock August 8, 2009 08:42 by author 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...



Passing an IronPython method to a C# method that takes a delegate as a parameter

clock June 14, 2009 21:42 by author 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...



IronPython String formatting and concatenation

clock June 14, 2009 21:33 by author 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...



IronPython - a configuration language

clock April 8, 2009 19:35 by author 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...



About the author

Simon is currently living and working in Toronto, Canada as a software consultant for Infusion. He is primarily a .Net developer although sometimes has to turn his hand to other technologies such as Java and flex. Simon has also recently started iPhone application development. Contact me.

Sign in