C# USING SHARED CLASS
Utilities.CreateFile()
C# USING SHARED CLASS
Utilities.CreateFile()
C# USING SHARED CLASS
public class Utilities
{
static public void CreateFile()
{
}
}
C# USING SHARED CLASS
static private string FileName;
static private int Version;
static public void GenerateVersionedFile()
{
Version += 1;
FileName += "(" + Version.ToString() + ")";
}
C# USING SHARED CLASS
Utilities utils;
utils = new Utilities();
utils.CreateFile();
C# USING SHARED CLASS
Dim utils As Utilities
utils = New Utilities
utils.CreateFile()
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
C# USING SHARED CLASS
public class Utilities
{
static private string InitialFileName;
static Utilities()
{
InitialFileName = "NewFile" + DateTime.Now;
}
static public void CreateFile()
{
...code using InitialFileName...
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us