does the static keyword define shared resources amongst every instance of a class 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
static private string FileName;
static private int Version;
static public void GenerateVersionedFile()
{
Version += 1;
FileName += "(" + Version.ToString() + ")";
}