public static class Kata { public static int SameCase(char a, char b) { return char.IsLetter(a) && char.IsLetter(b) ? (char.IsUpper(a) == char.IsUpper(b) ? 1 : 0) : -1; } }
- public static class Kata
- {
- public static int SameCase(char a, char b)
- {
if (!char.IsLetter(a) || !char.IsLetter(b)){return -1;}return (char.IsUpper(a) == char.IsUpper(b)) ? 1 : 0;- return char.IsLetter(a) && char.IsLetter(b) ? (char.IsUpper(a) == char.IsUpper(b) ? 1 : 0) : -1;
- }
- }