Files
codeql/csharp/ql/src/Metrics/Callables/StatementNestingDepthFix.cs
2018-08-03 14:10:44 +02:00

20 lines
378 B
C#

public static void PrintAllCharInts(string s){
if (s != null)
{
foreach (char c in s)
{
Console.WriteLine(c + "=" + (int)c);
}
}
}
public static void Main(string[] args)
{
string[] strings = new string[5];
if (strings != null)
{
foreach(string s in strings){
PrintAllCharInts(s);
}
}
}