I have a collection of domain objects that I need to convert into another type for use by the .NET framework. What is the best practice for doing such a transformation?
Specifically, I have a type called ContentEntry and I need to convert it into a SyndicationItem for use in putting into a SyndicationFeed. The conversion itself is straight forward but I'm looking for a good pattern. Do I create a method on ContentEntry called CreateSyndicationItem() or perhaps a separate converter object? Perhaps an extension method?
This will be somewhat subjective, but I'd appreciate some ideas.
Edit Note: I'd like to note that I don't control SyndicationItem. It is built into the .NET Framework. Also, I'd really like to convert several ContentEntry objects into SyndicationItems at one time.