It is relatively common practice for property names to default to the type name when the type name is significant enough;
public class User { }
public class UserSession
{
/// <summary>
/// Creates a <see cref="UserSession" /> instance
/// with the given <see cref="User" />
/// </summary>
public UserSession(User user)
{
User = user;
}
public User User { get; private set; }
}
My problem is that the <see cref="User" />
element in the XML documentation refers to the UserSession.User
property. What should I write in order to reference the User
type instead?