小编ser*_*g.f的帖子

升级到VS 2012 Update 2后,无法通过Resharper运行MSTest单元测试

所有测试都处于待定状态.我无法运行或调试它们.我看到其他人也经历过同样的问题:http://youtrack.jetbrains.com/issue/RSRP-339546

resharper visual-studio-2012

24
推荐指数
1
解决办法
1万
查看次数

为什么System.Reflection.IntrospectionExtensions.GetTypeInfo有无法访问的代码?

新的.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)

为什么这种方法无法访问代码?这是一个错误还是故意做的?

.net c# .net-4.5

7
推荐指数
1
解决办法
926
查看次数

标签 统计

.net ×1

.net-4.5 ×1

c# ×1

resharper ×1

visual-studio-2012 ×1