mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
25 lines
501 B
Plaintext
25 lines
501 B
Plaintext
// Generate DataFlowUnoptimized.dll: `csc /target:library DataFlowUnoptimized.cs_ /out:DataFlowUnoptimized.dll`
|
|
|
|
using System;
|
|
|
|
namespace DataflowUnoptimized
|
|
{
|
|
public class MaybeNullMethods
|
|
{
|
|
public bool cond = false;
|
|
|
|
public string MaybeNull()
|
|
{
|
|
if (cond)
|
|
return null;
|
|
else
|
|
return "not null";
|
|
}
|
|
|
|
public string MaybeNull2()
|
|
{
|
|
return cond ? null : "not null";
|
|
}
|
|
}
|
|
}
|