所有测试都处于待定状态.我无法运行或调试它们.我看到其他人也经历过同样的问题:http://youtrack.jetbrains.com/issue/RSRP-339546
新的.NET4.5 API在IntrospectionExtensions类中具有以下逻辑
public static TypeInfo GetTypeInfo(this Type type)
{
if (type == (Type) null)
throw new ArgumentNullException("type");
IReflectableType reflectableType = (IReflectableType) type;
if (reflectableType == null)
return (TypeInfo) null; // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< HERE!
else
return reflectableType.GetTypeInfo();
}
Run Code Online (Sandbox Code Playgroud)
为什么这种方法无法访问代码?这是一个错误还是故意做的?