GeneratorRunResult.Diagnostics Property
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.
A collection of Diagnostics reported by Generator
public System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic> Diagnostics { get; }
member this.Diagnostics : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>
Public ReadOnly Property Diagnostics As ImmutableArray(Of Diagnostic)
Property Value
Remarks
When generation fails due to an Exception being thrown, a single diagnostic is added to represent the failure. Any generator reported diagnostics up to the failure point are not included.
Applies to
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.