prevent inheritance of a class in .NET

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