Property in
Gets the collection of objects that describe problems in the source code.
If the compiler encounters errors while compiling source code, the it produces will have a value of null . To help figure out what the error is, users should consult the contents of this property.
public IEnumerable<Diagnostic> Diagnostics { get; internal set; }