Shared / Static Class in vb.net/C# VB.net : Shared C# : Static You can’t create object of Shared Class Below Image show Properties and Method are not visible for Shared/Static Class Public Class Form1 Private Sub Button1_Click(sender As Object , e As EventArgs ) Handles Button1.Click 'Module is VB.net are Shared Type Class. 'Shared Class Example is ARC.Tools.GRIDManager 'When Class s Defined as Shared There no need to create object of Class. 'If you just want to create a class that you can't inherit, in C# you can use ' Sealed, and in VB.Net use NotInheritable. 'The VB.Net equivalent of s...
Comments
Post a Comment