TypeParam and TypeParamRef question
This is probably a very simple question, but since I know nothing about Generics, I am not sure of what is a <typeparam> and what is a <typeparamref>.
For this example (from the MSDN documentation):
public class TestClass
{
/// <summary>
/// Creates a new array of arbitrary type <typeparamref name="T"/>
/// </summary>
/// <typeparam name="T">The element type of the array</typeparam>
public static T[] mkArray(int n)
{ return new T[n];}
}
Which "T" does the <typeparam> refer to and which "T" does the <typeparamref> refer to?
And for this example (from the Sandcastle Test.cs file):
/// <summary>
/// <para><typeparam name="T">The element type to swap</typeparam></para>
/// <para>Swap data of type <typeparam name="T"></para>
/// </summary>
/// <typeparamref name="T"/>
public void Swap<T>(ref T lhs, ref T rhs)
{
T temp;
temp = lhs;
lhs = rhs;
rhs = temp;
}
Which "T" does the <typeparam> refer to and which "T" does the <typeparamref> refer to?
Do the "ref T lhs" and "ref T rhs" values become
<param name="lhs">description</param>
<param name="rhs">description</param>
Thanks,
Eric

