An example of my code with the comments to automatically generate the HTML file with:
///<summary>Starting at 2, up until the square root of 'x' (any factor larger than that would be too large), output all factors.</summary>
///<param name="factors">The list of factors.</param>
///<param name="x">The number to get factors of.</param>
///<returns>Returns a filled list of factors of 'x'.</returns>
static List<int> CalcGCD(List<int> factors, int x)
{
for (int i = 2; i <= Math.Sqrt(x); i++)
{
while (x % i == 0)
{
Console.Write(i + " ");
x = x / i;
factors.Add(i);
}
}
if (x > 2)
{
factors.Add(x);
Console.WriteLine(x);
}
return factors;
}
And this is what it outputs in the HTML file:
Starting at 2, up until the square root of 'x' (any factor larger than that would be too large), output all factors.
param name="factors">The list of factors.
param name="x">The number to get factors of.
returns>Returns a filled list of factors of 'x'.
summary>Get the common factors between a_factors and b_factors. Loops through both, and if the value is the same it removes it once from both and continues the process.
param name="common_factors">The list of common factors.
param name="a_factors">The list of factors for 'a'.
param name="b_factors">The list of factors for 'b'.
returns>Returns a list of common factors and outputs them.
Definition at line 18 of file Program.cs.
Why is the XML still there? How do I make it go away?