DiagnosticDescriptor API changes and documentation comments: Change the...
DiagnosticDescriptor API changes and documentation comments: Change the DiagnosticDescriptor API as per the Diagnostics API review feedback. It now has following field with corresponding doc comments: /// <summary> /// Create a DiagnosticDescriptor, which provides description about a <see cref="Diagnostic"/>. /// </summary> /// <param name="id">A unique identifier for the diagnostic. For example, code analysis diagnostic ID "CA1001".</param> /// <param name="description">A short localizable description of the diagnostic. For example, for CA1001: "Types that own disposable fields should be disposable".</param> /// <param name="messageFormat">A localizable format message string, which can be passed as the first argument to <see cref="M:System.String.Format"/> when creating the diagnostic message with this descriptor. /// For example, for CA1001: "Implement IDisposable on '{0}' because it creates members of the following IDisposable types: '{1}'."</param> /// <param name="category">The category of the diagnostic (like Design, Naming etc.). For example, for CA1001: "Microsoft.Design".</param> /// <param name="defaultSeverity">Default severity of the diagnostic.</param> public DiagnosticDescriptor(string id, string description, string messageFormat, string category, DiagnosticSeverity defaultSeverity) (changeset 1211580)
Showing
想要评论请 注册 或 登录