Skip to content

Commit 060cb8e

Browse files
committed
Added missing namespace check
1 parent ad4f28c commit 060cb8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator/Generators/CSharp/CSharpMarshal.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ private void MarshalRefClass(Class @class)
769769
if (Context.Parameter.IsIndirect)
770770
{
771771
// Kythera-specific classes.
772-
if (@class.Namespace.Name == "Kyt")
772+
if (@class.IsInNamespace("Kyt"))
773773
{
774774
Method cctor = @class.HasNonTrivialCopyConstructor ? @class.Methods.First(c => c.IsCopyConstructor) : null;
775775
if (cctor != null && cctor.IsGenerated)

0 commit comments

Comments
 (0)