c# create shared function code example
Example 1: C# USING SHARED CLASS
Private Shared FileName As String = String.Empty
Private Shared Version As Integer = 0
Public Shared Sub GenerateVersion()
Version += 1
FileName &= "(" & Version.ToString & ")"
End Sub
Example 2: C# USING SHARED CLASS
Utilities.CreateFile()
Example 3: C# USING SHARED CLASS
Dim utils As Utilities
utils = New Utilities
utils.CreateFile()