CodeDiagnosticReferences public sealed class CodeDiagnostic Show allRepresents a single message generated by the compiler. AllPropertiesMethods ObsoleteInherited PropertiesColumn#public int Column { get; }Gets the column index of the first offending character, if available. This property will yield -1 if no column is known.Description#public string Description { get; }Gets the description of the diagnostic.IsError#public bool IsError { get; }Gets whether this diagnostic qualifies as an error.IsWarning#public bool IsWarning { get; }Gets whether this diagnostic qualifies as a warning.Length#public int Length { get; }Length of code implicated.Line#public int Line { get; }Gets the line number of the first offending character, if available. This property will yield -1 if no line number is known.Location#public int Location { get; }Index of first character of implicated code.MethodsCreateError#public static CodeDiagnostic CreateError(string description, int location, int length, int line = -1, int column = -1)Create a new error.Parameters:description (string)Description.location (int)Beginning of implicated code.length (int)Length of implicated code.line (int = -1)Line number, if known.column (int = -1)Column index, if known.CreateHint#public static CodeDiagnostic CreateHint(string description, int location, int length, int line = -1, int column = -1)Create a new hint or informational message.Parameters:description (string)Description.location (int)Beginning of implicated code.length (int)Length of implicated code.line (int = -1)Line number, if known.column (int = -1)Column index, if known.CreateWarning#public static CodeDiagnostic CreateWarning(string description, int location, int length, int line = -1, int column = -1)Create a new warning.Parameters:description (string)Description.location (int)Beginning of implicated code.length (int)Length of implicated code.line (int = -1)Line number, if known.column (int = -1)Column index, if known.