Custom attribute constraints

Viewed 137

How make custom attribute which can be used only with specific keyword? For example attribute which can be places only above fields or only above public Boolean fields?

The point is to make something similat to Java @Target annotation.

1 Answers

How make custom attribute which can be used only with specific keyword?

This is not possible in Delphi.

Related