'Unable to see the decompiled code of System.Management.ManagementDateTimeConverter.ToDateTime(string) using ILSpy/Reflector?

I am trying to see the actual implementation detail of System.Management.ManagementDateTimeConverter.ToDateTime(string) using ILspy? It didn't show anything. Then I thought it's probably a bug in ILSpy and tried to see the decompiled code using Reflector - but it also doesn't show details (please see below code snippet) either.

Basically I am trying to see how the cim datetime will be parsed - for details, you may refer to: (What format is this time value in? , Parse CIM_DateTime to .Net DateTime )

Questions

  1. Why am I not able to see the decompiled code of this specific function/assembly?

  2. any details on how managementdatetimeconverter parses the stringof type 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)
{
}


Solution 1:[1]

With ILSpy, you can also load the assembly from the GAC.

Menu "File > Open from GAC..."

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dude Pascalou