Class Cs.TypeParameter

java.lang.Object
org.openrewrite.csharp.tree.Cs.TypeParameter
All Implemented Interfaces:
Cs, org.openrewrite.java.tree.J, org.openrewrite.Tree
Enclosing interface:
Cs

public static final class Cs.TypeParameter extends Object implements Cs
Represents a C# type parameter in generic type declarations, including optional variance and constraints.

For example:

     // Simple type parameter
     class Container<T>

     // Type parameter with variance
     interface IEnumerable<out T>

     // Type parameter with attributes
     class Handler<[Category("A")] T>

     // Type parameter with variance and attributes
     interface IComparer<[NotNull] in T>