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