直接代码: 第一种方法利用System.DateTime.Now static void SubTest() { DateTime beforDT = System.DateTime.Now;
I\'ve run into the following a few times with initializer lists and I\'ve never been able to explain it well.Can anyone explain why exactly the following fails (I don\'t have a compiler to catch typos