Wednesday, February 25, 2009

Next Steps

So far I think things are going good. I could even start to use this in the real world. But I'd like to complete a few more features first.

Having a .By(Property, Value) method. That way we could get an object by any defined property.

Having something like .Get(Property) and .Set(Property) that will return the value of any property. Right now the child class has to access the underlying _properties hash. I don't necessarily like that idea, it gives the developer a chance to screw up more than just the property they are working with (since all properties are through the same hash.) Also methods like that would mean that the developer wouldn't have to check if the property already exists and if they should return a default value. On the down side, how do you define what the default should be? probably in the attribute.

No comments: