我怎么能看到System.Math.Sin的源代码? [英] How can I see the source code of System.Math.Sin?
本文介绍了我怎么能看到System.Math.Sin的源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在此链接,我们可以看到<$的源代码C $ C> System.Math 类。但我不能找到正弦波是如何定义的源代码。
In this link, we can see the source code of System.Math
class. But I cannot find the source code of how sine is defined.
这有什么,我在这里丢失?
Is there anything I am missing here?
推荐答案
该方法的签名是:
[System.Security.SecuritySafeCritical] // auto-generated
[ResourceExposure(ResourceScope.None)]
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public static extern double Sin(double a);
的
的 的extern
的方法意味着它在别处定义。在这种情况下,它会直接,这意味着没有可用的.NET实现的CLR(可能是用C语言或汇编)实现的。
The extern
in the method means it is defined elsewhere. In this case, it will be implemented directly in the CLR (probably written in C or Assembly) which means there is no .NET implementation available.
这篇关于我怎么能看到System.Math.Sin的源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文