Depends on what you are actually trying to achieve. The Adapter and Decorator are very similar in many respects, however, when implementing the Adapter, you have no new logic, except for conversion. When implementing Decorator, you actually add some completely new functionality that never existed previously in the object you are decorating.
So, in short, if the properties are Id , WorkerId etc. Naturally come from TaskWithListOfProperties - then you should consider this as an adapter . Otherwise, it is a decorator .
source share