mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
31 lines
445 B
C#
31 lines
445 B
C#
using System;
|
|
|
|
class Bad
|
|
{
|
|
void M()
|
|
{
|
|
Logger.Log("Hello, World!");
|
|
}
|
|
|
|
static class Logger
|
|
{
|
|
[Obsolete("Use Log(LogLevel level, string s) instead")]
|
|
public static void Log(string s)
|
|
{
|
|
// ...
|
|
}
|
|
|
|
public static void Log(LogLevel level, string s)
|
|
{
|
|
// ...
|
|
}
|
|
}
|
|
|
|
enum LogLevel
|
|
{
|
|
Info,
|
|
Warning,
|
|
Error
|
|
}
|
|
}
|