private XPathNavigator GetTypeNode(HttpControllerDescriptor controllerDescriptor)
{
Type controllerType = controllerDescriptor.ControllerType;
string controllerTypeName = controllerType.FullName;
if (controllerType.IsNested)
{
// Changing the nested type name from OuterType+InnerType to OuterType.InnerType to match the XML documentation syntax.
controllerTypeName = controllerTypeName.Replace("+", ".");
}
string selectExpression = String.Format(CultureInfo.InvariantCulture, TypeExpression, controllerTypeName);
return _documentNavigator.SelectSingleNode(selectExpression);
}