2023-08-13 22:35:10 +00:00
|
|
|
namespace Godot.SourceGenerators.Sample
|
|
|
|
{
|
|
|
|
public partial class MixedReadonlyWriteOnly : GodotObject
|
|
|
|
{
|
2024-02-19 21:15:37 +00:00
|
|
|
public readonly string ReadOnlyField = "foo";
|
|
|
|
public string ReadOnlyAutoProperty { get; } = "foo";
|
|
|
|
public string ReadOnlyProperty { get => "foo"; }
|
|
|
|
public string InitOnlyAutoProperty { get; init; }
|
2023-08-13 22:35:10 +00:00
|
|
|
|
2024-02-19 21:15:37 +00:00
|
|
|
private bool _writeOnlyBackingField = false;
|
|
|
|
public bool WriteOnlyProperty { set => _writeOnlyBackingField = value; }
|
2023-08-13 22:35:10 +00:00
|
|
|
}
|
|
|
|
}
|