The Obsolete attribute

I was going to recommend using the Obsolete attribute for DefType.Refresh()

We could even have done a
[Obsolete(“Refresh not allowed for def types”, true)] so that the compiler issues an error and prints out a message.

However, it won’t work since this particular case is a virtual/override method. ‘Obsolete’ is ignored for an overridden method.

However, it should be useful in other cases. Just FYI

Comments

Archive

Show more