6
可空
我的代碼目前看起來像如下:
for queryItem in queryResult do
queryItem.CurrentDate <- DateTime.UtcNow // This gives compiler error as described above
問候
可空
我的代碼目前看起來像如下:
for queryItem in queryResult do
queryItem.CurrentDate <- DateTime.UtcNow // This gives compiler error as described above
問候
由約翰·帕爾默上述鏈接到解決方案的評論。人們需要使用System.Nullable構造即
queryItem.CurrentDate <- System.Nullable DateTime.UtcNow