blob: 61a48cefc9e0bc6b5fb46cb529bbc34756d8dcba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
using Godot;
public partial class MixedReadOnlyWriteOnly : GodotObject
{
public readonly string readonly_field = "foo";
public string readonly_auto_property { get; } = "foo";
public string readonly_property { get => "foo"; }
public string initonly_auto_property { get; init; }
bool writeonly_backing_field = false;
public bool writeonly_property { set => writeonly_backing_field = value; }
}
|