Skip to content

Commit 6bf823e

Browse files
committed
Fix IsInternalClassNested usage
1 parent 37bd7e0 commit 6bf823e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Generator/Generators/CSharp/CSharpSources.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ private void GenerateFieldSetter(Field field, Class @class, QualifiedType fieldT
10541054
else
10551055
{
10561056
var typeName = TypePrinter.PrintNative(@class);
1057-
if (IsInternalClassNested(field.Class))
1057+
if (IsInternalClassNested(@class))
10581058
typeName.RemoveNamespace();
10591059
returnVar = $"(({typeName}*){Helpers.InstanceIdentifier})->{name}";
10601060
}
@@ -1415,7 +1415,7 @@ private void GenerateFieldGetter(Field field, Class @class, QualifiedType return
14151415
else
14161416
{
14171417
var typeName = TypePrinter.PrintNative(@class);
1418-
if (IsInternalClassNested(field.Class))
1418+
if (IsInternalClassNested(@class))
14191419
typeName.RemoveNamespace();
14201420
returnVar = $"(({typeName}*){Helpers.InstanceIdentifier})->{name}";
14211421
// Class field getter should return a reference object instead of a copy. Wrapping `returnVar` in

0 commit comments

Comments
 (0)