DataVisualization

编程入门 行业动态 更新时间:2024-10-26 20:21:32
DataVisualization - ILSpy中的空函数体(DataVisualization - empty function bodies in ILSpy)

我正在做一些天体物理学研究,我正在使用Win-Form Chart组件分析数据。 在X轴上是日期,在Y轴上是值,我正在使用图表的成员方法DataManipulator.FinancialFormula对值应用MovingAverage。

我和我的顾问关心这个函数如何处理缺少的日期。 所以我试着用ILSpy查看System.Windows.Forms.DataVisualization.dll ,看看它是如何实现的,但我发现所有函数体都是空的,但是当我检查TcpClient Dispose和Close方法时,我能够看到完整的函数体。 我尝试过与JustDecompile相同的JustDecompile和ILSpy 。

为什么System.Windows.Forms.DataVisualization.dll中的方法体是空的?

那么DataManipulator.FinancialFormula的真实代码在DataManipulator.FinancialFormula呢?

或者这个函数如何处理日期中的空白?

I'm doing some astrophysics research and I'm analysing data using Win-Form Chart component. On X-Axis is date and on Y-Axis is value, and I'm applying MovingAverage using member method DataManipulator.FinancialFormula of Chart on values.

I and my advisor are concerned how this function handles missing dates. So I tried to look with ILSpy into System.Windows.Forms.DataVisualization.dll to see how it's implemented but I found all function bodies empty but when I examined TcpClient Dispose and Close methods, I was able to see full function bodies. I have tried ILDasm and JustDecompile with same results as ILSpy.

Why are method bodies from System.Windows.Forms.DataVisualization.dll empty?

So where the real code of DataManipulator.FinancialFormula is located?

Or how this function handles gaps in dates?

最满意答案

ILSpy的my和@Junaith输出之间的区别让我想到我正在查看错误的文件 - C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Windows.‌​Forms.DataVisualization.dll 。 我通过在Chart的成员方法DataManipulator.FinancialFormula上使用“转到定义”VS函数查看System.Windows.Forms.DataVisualization.Charting.DataFormula的元数据顶部的注释获得此路径。

所以我运行了我的程序,在Process Explorer中,我查看了程序进程属性中加载的.NET程序集。 令我惊讶的是,前面提到的dll甚至不存在,而是我找到了C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Wind0de890be#\a4711c664a774896b35428b1a3bf9470\System.Windows.Forms.DataVisualization.ni.dll 。

我将该DLL加载到ILSpy中,并且方法已经完全实现,包括它们的主体。

The difference between my and @Junaith output from ILSpy lead me to tought that I'm looking at wrong file -C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Windows.‌​Forms.DataVisualization.dll. This path I obtained from comment at top of metadata of System.Windows.Forms.DataVisualization.Charting.DataFormula viewed by using "Go to Definition" VS function on member method DataManipulator.FinancialFormula of Chart.

So I ran my program and with Process Explorer I looked on loaded .NET Assemblies in properties of my program process. For my surprise the dll mentioned before wasn't even there, instead I found there C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Wind0de890be#\a4711c664a774896b35428b1a3bf9470\System.Windows.Forms.DataVisualization.ni.dll.

I loaded that dll into ILSpy and methods have full implementation including their bodies.

更多推荐

本文发布于:2023-07-04 16:50:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1026851.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:DataVisualization

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!