Home  /  Questions  /  Question



88   96.5
Sep 27, 2013


.NET Attributes versus the Decorator Pattern

Hi ,

What is the difference between .NET Attributes and the Decorator Pattern? 

For example  

[Serializeable()]
public class Order 
{
   // something
}

Doesn't the Serializable attribute decorate the Order class? 

Thanks