我正在尝试查看 System.Management 的实际实现细节。ManagementDateTimeConverter.ToDateTime(字符串)使用ILspy?它没有显示任何东西。然后我认为这可能是 ILSpy 中的一个错误,并尝试使用 Reflector 查看反编译的代码 - 但它也没有显示详细信息(请参阅下面的代码片段)。
基本上我想看看如何解析 cim 日期时间 - 有关详细信息,您可以参考:(这个时间值是什么格式?,将 CIM_DateTime 解析为 .Net DateTime)
问题
为什么我看不到这个特定函数/程序集的反编译代码?
有关 managementdatetimeconverter 如何解析 CIM DateTime 类型的字符串的任何详细信息?
// System.Management.ManagementDateTimeConverter
/// <summary>Converts a given DMTF datetime to <see cref="T:System.DateTime" />. The returned <see cref="T:System.DateTime" /> will be in the current time zone of the system. </summary>
/// <returns>A <see cref="T:System.DateTime" /> that represents the given DMTF datetime.</returns>
/// <param name="dmtfDate">A string representing the datetime in DMTF format.</param>
public static DateTime ToDateTime(string dmtfDate)
{
}