ktu*_*nik 4 c# java actionscript-3
这是在C#中:
private static readonly ILog log = LogManager.GetLogger(typeof (MyClass));
不仅在C#中,而且我看到了同样的另一种语言......有什么想法吗?
SLa*_*aks 12
它是私有的,因为其他类不应该访问MyClass'log.
MyClass
这是static因为它不依赖于类实例.(因此可以通过static方法使用)
static
归档时间:
16 年 前
查看次数:
422 次
最近记录: