原創|產品更新|編輯:莫成敏|2019-07-08 15:43:06.100|閱讀 389 次
概述:.NET Reflector更新至v10.1.5,添加了對新C#7.x功能的支持
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
.NET Reflector可以在沒有源代碼的情況下,通過反編譯,幫助您觀察API、組件、框架等等核心代碼的工作情況。此外,您還可以在Visual Studio中查看第三方代碼。
.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 c?ref 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; }
試用、下載、了解更多產品信息請點擊
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn