DiagnosticFormatter.Format(Diagnostic, IFormatProvider) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Formats the Diagnostic message using the optional IFormatProvider.
public virtual string Format (Microsoft.CodeAnalysis.Diagnostic diagnostic, IFormatProvider formatter = default);
public virtual string Format (Microsoft.CodeAnalysis.Diagnostic diagnostic, IFormatProvider? formatter = default);
abstract member Format : Microsoft.CodeAnalysis.Diagnostic * IFormatProvider -> string
override this.Format : Microsoft.CodeAnalysis.Diagnostic * IFormatProvider -> string
Public Overridable Function Format (diagnostic As Diagnostic, Optional formatter As IFormatProvider = Nothing) As String
Parameters
- diagnostic
- Diagnostic
The diagnostic.
- formatter
- IFormatProvider
The formatter; or null to use the default formatter.
Returns
The formatted message.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.