mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
23 lines
443 B
C#
23 lines
443 B
C#
using System;
|
|
|
|
public class RelationalPattern
|
|
{
|
|
public static bool M1(char c) =>
|
|
c is >= 'a';
|
|
public static bool M2(char c) =>
|
|
c is > 'a';
|
|
public static bool M3(char c) =>
|
|
c is <= 'a';
|
|
public static bool M4(char c) =>
|
|
c is < 'a';
|
|
|
|
public static string M5(int i)
|
|
{
|
|
return i switch
|
|
{
|
|
1 => "1",
|
|
>1 => ">1",
|
|
_ => "other"
|
|
};
|
|
}
|
|
} |