mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
9
csharp/ql/src/Useless code/RedundantToStringCallBad.cs
Normal file
9
csharp/ql/src/Useless code/RedundantToStringCallBad.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
|
||||
class Bad
|
||||
{
|
||||
static string Hello(object o)
|
||||
{
|
||||
return string.Format("Hello, {0}!", o.ToString());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user