AllReadOnly.cs 337 B

12345678910
  1. namespace Godot.SourceGenerators.Sample
  2. {
  3. public partial class AllReadOnly : GodotObject
  4. {
  5. public readonly string ReadonlyField = "foo";
  6. public string ReadonlyAutoProperty { get; } = "foo";
  7. public string ReadonlyProperty { get => "foo"; }
  8. public string InitonlyAutoProperty { get; init; }
  9. }
  10. }