private static Type GetTypeByName(ref Type cachedResult, string name)
{
if ((object)cachedResult == s_Sentinel)
{
System.Threading.Interlocked.CompareExchange(ref cachedResult, Type.GetType(name, throwOnError: false), s_Sentinel);
}
return cachedResult;
}