In C# we have __arglist
keyword which makes method variable-argument like this:
public static void PrintFormat(string format, __arglist)
{
....
}
It compiles to :
.method public hidebysig static vararg void PrintFormat ( string format ) cil managed
{
....
}
Note that vararg
. So how can we know a method has variable-arguments in Mono.Cecil ?