Skip to content

Commit

Permalink
Added missing namespace check
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanL8 committed Nov 6, 2023
1 parent ad4f28c commit 060cb8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator/Generators/CSharp/CSharpMarshal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ private void MarshalRefClass(Class @class)
if (Context.Parameter.IsIndirect)
{
// Kythera-specific classes.
if (@class.Namespace.Name == "Kyt")
if (@class.IsInNamespace("Kyt"))
{
Method cctor = @class.HasNonTrivialCopyConstructor ? @class.Methods.First(c => c.IsCopyConstructor) : null;
if (cctor != null && cctor.IsGenerated)
Expand Down

0 comments on commit 060cb8e

Please sign in to comment.