Skip to content

Commit

Permalink
Remove a primary constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
anosatsuk124 committed Aug 1, 2024
1 parent bbc98fe commit 593f615
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Sources/ClassGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@

namespace GodotUIXml;

class ClassGenerator(string className, XElement root)
class ClassGenerator
{
public string className { get; } = className;
private ClassGenerator(string _className, XElement _root)
{
className = _className;
root = _root;
}

private string className { get; }
private XElement root { get; }

const string IDAttribute = "id";
const string ProtoSceneAttribute = "proto_scene";
Expand Down

0 comments on commit 593f615

Please sign in to comment.