Skip to content

Commit cfae566

Browse files
Process params in member signature format (#23)
Fixes #16
1 parent 621a787 commit cfae566

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/ClassExplorer/SignatureWriter.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,12 @@ public SignatureWriter RefModifier(ParameterInfo parameter)
709709
public SignatureWriter TypeInfo(ParameterInfo parameter)
710710
{
711711
RefModifier(parameter);
712+
713+
if (parameter.IsDefined(typeof(ParamArrayAttribute), inherit: false))
714+
{
715+
Keyword("params").Space();
716+
}
717+
712718
Type parameterType = parameter.ParameterType;
713719
if (parameterType.IsByRef)
714720
{
@@ -1648,6 +1654,11 @@ public SignatureWriter Parameter(ParameterInfo parameter)
16481654
continue;
16491655
}
16501656

1657+
if (attribute.AttributeType == typeof(ParamArrayAttribute))
1658+
{
1659+
continue;
1660+
}
1661+
16511662
if (attribute.AttributeType == typeof(MarshalAsAttribute))
16521663
{
16531664
MarshalAsAttribute(attribute, false).Space();

0 commit comments

Comments
 (0)