Skip to content

Commit 958dd1e

Browse files
committed
For some reason parts of the generated code don't like MangleAs, so
do MangleAsAttribute instead
1 parent 971737f commit 958dd1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mono.VisualC.Code/Atoms/Method.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private CodeMemberMethod CreateInterfaceMethod ()
168168

169169
// FIXME: Only add MangleAs attribute if the managed type chosen would mangle differently by default
170170
if (!IsVirtual && !paramStr.Equals (string.Empty))
171-
param.CustomAttributes.Add (new CodeAttributeDeclaration ("MangleAs", new CodeAttributeArgument (new CodePrimitiveExpression (paramStr))));
171+
param.CustomAttributes.Add (new CodeAttributeDeclaration ("MangleAsAttribute", new CodeAttributeArgument (new CodePrimitiveExpression (paramStr))));
172172

173173
method.Parameters.Add (param);
174174
}

0 commit comments

Comments
 (0)