mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
22 lines
371 B
C#
22 lines
371 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
public class Params
|
|
{
|
|
public void M1(params string[] args)
|
|
{
|
|
var l = args.Length; // Good, true negative
|
|
}
|
|
|
|
public void M2(params string[] args)
|
|
{
|
|
var l = args.Length; // Good
|
|
}
|
|
|
|
public void M()
|
|
{
|
|
M1("a", "b", "c", null);
|
|
M2(null);
|
|
}
|
|
} |