C# has a quite nice way to store metadata about a property by a feature called atributes[1]. For example, I can write something like this:

class A {
   [TextSize(256)]
   string Name { get; set; }
}

So using runtime/reflection I can retrieve the TextSize value associated to A.name property.

Does D have something similar?

Reply via email to