//
// Summary:
// Returns the specified System.DateTime object; no actual conversion is performed.
//
// Parameters:
// value:
// A date and time value.
//
// Returns:
// value is returned unchanged.
public static DateTime ToDateTime(DateTime value);
为什么System.Convert
has ToDateTime
接受日期时间?
方法文档指出该值保持不变。
惯例、可预测性以及因为IConvertable定义方法ToDateTime
.
我相信在幕后,System.Convert
简单地遍历所有的组合IConvertable
类。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)