If we don't want to use any class in future or we want to freeze any class, then we can mark that class with [Obsolete] Attribute as shown below.
While we are trying to access "EventTestOld" class, Visual studio itself showing a message of obsolete. By using this approach we can seal our class for no further use.

