Class Cs.ConstructorInitializer

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

public static final class Cs.ConstructorInitializer extends Object implements Cs
Represents a constructor initializer which is a call to another constructor, either in the same class (this) or in the base class (base). Examples:
 class Person {
 // Constructor with 'this' initializer
 public Person(string name) : this(name, 0) { }
 // Constructor with 'base' initializer
 public Person(string name, int age) : base(name) { }
 }
 
  • Constructor Details

    • ConstructorInitializer

      public ConstructorInitializer()
  • Method Details