它显示39个错误。所有错误都是这样的:

错误1作为错误警告:'FreeImageAPI.Plugins.PluginRepository.Plugin(string)'的XML注释具有用于'expression'的typeparamref标记,但是没有名称为C:\ Users \ Public \ Documents \ @Programming的类型参数\ FreeImage \ Wrapper \ FreeImage.NET \ cs \ Library \ Classes \ PluginRepository.cs 63 27库

在源文件上:

 /// <summary>
        /// Returns an instance of <see cref="FreeImageAPI.Plugins.FreeImagePlugin"/>.
        /// <typeparamref name="expression"/> is searched in:
        /// <c>Format</c>, <c>RegExpr</c>,
        /// <c>ValidExtension</c> and <c>ValidFilename</c>.
        /// </summary>
        /// <param name="expression">The expression to search for.</param>
        /// <returns>An instance of <see cref="FreeImageAPI.Plugins.FreeImagePlugin"/>.</returns>
        public static FreeImagePlugin Plugin(string expression)
        {
            FreeImagePlugin result = null;
            expression = expression.ToLower();

            foreach (FreeImagePlugin plugin in plugins)
            {
                if (plugin.Format.ToLower().Contains(expression) ||
                    plugin.RegExpr.ToLower().Contains(expression) ||
                    plugin.ValidExtension(expression, StringComparison.CurrentCultureIgnoreCase) ||
                    plugin.ValidFilename(expression, StringComparison.CurrentCultureIgnoreCase))
                {
                    result = plugin;
                    break;
                }
            }

            return result;
        }


我如何解决它 ?
提前致谢

最佳答案

您应该将<typeparamref name="expression"/>更改为<paramref name="expression"/>
<typeparamref>旨在描述类型参数(如泛型),而不是方法所接收的参数名称。

Check typeparamref hereparamref here

10-06 05:53