0

I was just wondering if there is a way to find an algorithm for already existing functions. For example if I wanted to know how Math.Pow() works the only things googling ever gets me to are the return values and a source code for Math library that defines pow(duble x, double y) as:

public static extern double Pow(double x, double y);

and nothing else is said about it. Is there a place where the source codes can be found?

Help me
  • 15
  • 2

1 Answers1

0

You can't see the source directly from .NET Framework because its an extern function, meaning it's implemented in a lower-level library--probably the CLR.

You can look at the summary,parameters, and return comments though if that helps you...

  1. Hover over the function (In my case Math.Cos) and Hit F12 enter image description here

  2. Expand the comment region in the metadata enter image description here

ѺȐeallү
  • 2,887
  • 3
  • 22
  • 34