AllReadOnly.cs 279 B

123456789
  1. using Godot;
  2. public partial class AllReadOnly : GodotObject
  3. {
  4. public readonly string ReadOnlyField = "foo";
  5. public string ReadOnlyAutoProperty { get; } = "foo";
  6. public string ReadOnlyProperty { get => "foo"; }
  7. public string InitOnlyAutoProperty { get; init; }
  8. }