.NET Reflector更新至v10.1.5,添加了对新C#7.x功能的支持
.NET Reflector可以在没有源代码的情况下,通过反编译,帮助您观察API、组件、框架等等核心代码的工作情况。此外,您还可以在Visual Studio中查看第三方代码。
【.NET Reflector最新版本>>>】
.NET Reflector v10.1.5更新内容:
修复:
-
RP-4143: 在.NET Reflector VS Extension中,“Access is denied”错误应该不再出现在启动时。
-
RP-4166: 委托类型的返回值不再强制转换为无效类型。
-
RP-4169: 优化后,对象初始值设定项不再包含重复的成员分配。
改进:
-
RP-4171: 编译器生成的属性支持字段不再可见。
特征:
-
添加了对新C#7.x功能的支持:
1、RP-4165: 本地参考重新分配(C#7.3)
public void RefLocalReassignment(){ int i = 5; ref int r1 = ref i; ref int r2 = ref i; ref int rr = ref r1; rr = ref r2; rr = 10;}
2、RP-4165: 条件ref表达式(C#7.2)
public void TestConditionalRef(int a,int b,bool c){ ref int value = ref cef a:ref b;}
3、RP-4165: ref return(C#7.0)
public ref int TestRefReturn(ref int a, ref int b, bool c){ if (c) return ref a; else return ref b;}
4、RP-4165: 扩展ref和in(C#7.2)
public static class Extensions{ // Ref extensions public static int Extension1(this ref int arg) { var tmp = arg; arg *= 2; return tmp; }}public class Test{ public void TestRefExtensions() { int a = 5; ref int b = ref a; b.Extension1(); }}
5、RP-4165: 只读ref(C#7.2)
public ref readonly int TestRefReadonly(bool condition, ref int r){ ref readonly int q = ref r; return ref r;}
6、RP-4165: 论证in(C#7.2)
public ref readonly int TestRefInArguments(in int a){ return ref a;}
7、RP-4168: 私有保护访问修饰符(C#7.2)
public class TestClass1{ private protected class NestedClass { }}
8、RP-4170: 自动生成的属性,支持字段的属性(C#7.3)
[field:SomeAttribute] public int TestProperty {get; set; }
试用、下载、了解更多产品信息请点击“咨询在线客服”
标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!