📜  如何制作全局字符串 c# 代码示例

📅  最后修改于: 2022-03-11 14:49:17.630000             🧑  作者: Mango

代码示例1
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();