AllReadOnly.cs 343 B

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