问候-
我有2节课.一个称为"程序",另一个称为"日志".名为Programs的类public const string m_sEnviron = "";接近顶部,我需要通过名为Logs的类来检查m_sEnviron变量的设置.变量m_sEnviron将从名为Tidal的调度程序中设置,因此如何从其他类检查其值.如果这不是最好的,请告诉我更好的方法.
提前致谢.
问候,
Namespace NightScripts
{
class Program
{
public static string m_sEnviron {get; set;}
static void Main(string[] args)
{
}
//Lots of other functions...
}
class Logs
{
//I try to get access to m_sEnviron but it will not show after I type Program.
}
}
Run Code Online (Sandbox Code Playgroud) c# ×1