Skip to content

Commit

Permalink
release v3.0.8
Browse files Browse the repository at this point in the history
- [fix] fixed source generator cannot detect the correct dictionary type parameters for a user defined dictionary subclass (#137)
  • Loading branch information
JasonXuDeveloper committed Jan 13, 2025
1 parent 2b812ec commit 99d1e64
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Nino.Unity/Assets/Test/Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public partial class PrimitiveTypeTest
{
[NinoMember(1)] public Vector3 v3;

[NinoMember(2)] private DateTime dt = DateTime.Now;
[NinoMember(2)] private DateTime dt;

[NinoMember(3)] public int? ni { get; set; }

Expand All @@ -161,6 +161,17 @@ public partial class PrimitiveTypeTest

[NinoMember(7)] public Dictionary<string, Data> dict2;

public PrimitiveTypeTest()
{
dt = DateTime.Now;
}

[NinoConstructor(nameof(dt))]
public PrimitiveTypeTest(DateTime time)
{
dt = time;
}

public override string ToString()
{
return
Expand Down

0 comments on commit 99d1e64

Please sign in to comment.