Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats
    Version Source
  • .NET Upgrade Planner
  1. Catalog
  2. Microsoft.CodeAnalysis
  3. SyntaxTrivia
  4. Language
  • SyntaxTrivia
    • ContainsDiagnostics
    • FullSpan
    • HasStructure
    • IsDirective
    • Language
    • RawKind
    • Span
    • SpanStart
    • SyntaxTree
    • Token
    • CopyAnnotationsTo(SyntaxTrivia)
    • Equals(Object)
    • Equals(SyntaxTrivia)
    • GetAnnotations(String)
    • GetAnnotations(String[])
    • GetDiagnostics()
    • GetHashCode()
    • GetLocation()
    • GetStructure()
    • HasAnnotation(SyntaxAnnotation)
    • HasAnnotations(String)
    • HasAnnotations(String[])
    • IsEquivalentTo(SyntaxTrivia)
    • IsPartOfStructuredTrivia()
    • ToFullString()
    • ToString()
    • WithAdditionalAnnotations(SyntaxAnnotation[])
    • WithAdditionalAnnotations(IEnumerable<SyntaxAnnotation>)
    • WithoutAnnotations(String)
    • WithoutAnnotations(SyntaxAnnotation[])
    • WithoutAnnotations(IEnumerable<SyntaxAnnotation>)
    • WriteTo(TextWriter)
    • operator !=(SyntaxTrivia, SyntaxTrivia)
    • operator ==(SyntaxTrivia, SyntaxTrivia)
    • IsKind(SyntaxTrivia, SyntaxKind)
    • Kind(SyntaxTrivia)
netcoreapp2.2
namespace Microsoft.CodeAnalysis
{
    [DebuggerDisplay("{GetDebuggerDisplay(), nq}")]
    public struct SyntaxTrivia : IEquatable<SyntaxTrivia>
    {
        public string Language { get; }
    }
}
.NET
5.06.07.08.09.010.011.0
.NET Core
2.02.12.23.03.1
.NET Framework
4.6.14.6.24.74.7.14.7.24.84.8.1
.NET Standard
2.02.1
Information specific to netcoreapp2.2
Assembly

Microsoft.CodeAnalysis , Version=2.8.0.0, PublicKeyToken=31bf3856ad364e35

Referencing

The API is automatically referenced.

Platform Restrictions

This framework does not have platform annotations.

  • Built-in API
  • Package-provided API
Search

10/16/2026
This site is managed by Microsoft | © 2026 Microsoft. All rights reserved.
  • Privacy Statement
  • Consumer Health Privacy
  • Terms of Use
  • Contact Us
  • Hosted on Microsoft Azure
  • Manage cookies
  • Your Privacy Choices
Oops, we couldn't process your request. Reload 🗙