Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to make a global string c#

public static class Globals
{
    public const Int32 BUFFER_SIZE = 512; // Unmodifiable
    public static String FILE_NAME = "Output.txt"; // Modifiable
    public static readonly String CODE_PREFIX = "US-"; // Unmodifiable
}

String code = Globals.CODE_PREFIX + value.ToString();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #global #string
ADD COMMENT
Topic
Name
1+4 =