We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
params
1 parent 621a787 commit cfae566Copy full SHA for cfae566
src/ClassExplorer/SignatureWriter.cs
@@ -709,6 +709,12 @@ public SignatureWriter RefModifier(ParameterInfo parameter)
709
public SignatureWriter TypeInfo(ParameterInfo parameter)
710
{
711
RefModifier(parameter);
712
+
713
+ if (parameter.IsDefined(typeof(ParamArrayAttribute), inherit: false))
714
+ {
715
+ Keyword("params").Space();
716
+ }
717
718
Type parameterType = parameter.ParameterType;
719
if (parameterType.IsByRef)
720
@@ -1648,6 +1654,11 @@ public SignatureWriter Parameter(ParameterInfo parameter)
1648
1654
continue;
1649
1655
}
1650
1656
1657
+ if (attribute.AttributeType == typeof(ParamArrayAttribute))
1658
1659
+ continue;
1660
1661
1651
1662
if (attribute.AttributeType == typeof(MarshalAsAttribute))
1652
1663
1653
1664
MarshalAsAttribute(attribute, false).Space();
0 commit comments