prevent overriding of a class in .NET

Use the keyword NotOverridable in VB.NET and sealed in C#.