Class DiagnosticFormatter
Formats Diagnostic messages.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Loretta.CodeAnalysis
Assembly: Loretta.CodeAnalysis.dll
Syntax
public class DiagnosticFormatter
Methods
| Improve this Doc View SourceFormat(Diagnostic, Nullable<IFormatProvider>)
Formats the Diagnostic message using the optional
Declaration
public virtual string Format(Diagnostic diagnostic, IFormatProvider? formatter = null)
Parameters
Type | Name | Description |
---|---|---|
Diagnostic | diagnostic | The diagnostic. |
System.Nullable<IFormatProvider> | formatter | The formatter; or null to use the default formatter. |
Returns
Type | Description |
---|---|
System.String | The formatted message. |