void CreateTypeDocComment(Type type, CodeTypeDeclaration typeDeclaration) { if (docLookup != null) { var dm = docLookup.GetMember("T:" + type.FullName); AddDocComments(dm, typeDeclaration.Comments); } }
void CreateTypeDocComment(Type type, CodeTypeDeclaration typeDeclaration) { if (docLookup != null) { var docComment = docLookup.GetMember("T:" + type.FullName); if (docComment != null) { typeDeclaration.Comments.Add(new CodeCommentStatement(StringFunctions.IndentedArrayToString(docComment.summary.Text), true)); } } }
static docMember GetMethodDocComment(DocCommentLookup lookup, System.Web.Http.Controllers.HttpActionDescriptor descriptor) { var methodFullName = descriptor.ControllerDescriptor.ControllerType.FullName + "." + descriptor.ActionName; var parameters = descriptor.GetParameters(); if (parameters.Count > 0) { methodFullName += "(" + parameters.Select(d => d.ParameterType.FullName).Aggregate((c, n) => c + "," + n) + ")"; } return(lookup.GetMember("M:" + methodFullName)); }
static docMember GetMethodDocComment(DocCommentLookup lookup, Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor descriptor) { var methodInfo = descriptor.MethodInfo; var methodFullName = methodInfo.DeclaringType.FullName + "." + methodInfo.Name; if (descriptor.Parameters.Count > 0) { methodFullName += "(" + descriptor.Parameters.Select(d => d.ParameterType.FullName).Aggregate((c, n) => c + "," + n) + ")"; } return(lookup.GetMember("M:" + methodFullName)); }