Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# USING SHARED CLASS

public class Utilities
{
  static private string InitialFileName;

  static Utilities()
  {
    InitialFileName = "NewFile" + DateTime.Now;
  }

  static public void CreateFile()
  {
    ...code using InitialFileName...
  }
}
Source by visualstudiomagazine.com #
 
PREVIOUS NEXT
Tagged: #USING #SHARED #CLASS
ADD COMMENT
Topic
Name
8+5 =