Relative Content

Tag Archive for delegates

Avoiding closures

I have a data structure in the form of a tree. Each node represents a cardboard box. The boxes can contain child boxes.

Many different classes that need similar functionality. Best approach?

I have many (at the moment around 30) different message classes in an application I am creating. Each of these messages need to be serialized and deserialized. However, the process of serializing and deserializing is mostly unique to each class (the format of the serialized message is specified in a document, and says which bits in the message goes where), but some are pretty straight forward and use the same process.