Just testing some types

This commit is contained in:
Geir Okkenhaug Jerstad 2024-11-29 12:20:19 +01:00
parent 19ea014088
commit bba0cec7f8

View file

@ -4,10 +4,13 @@
{
public static void Main(string[] args)
{
string name;
Console.WriteLine("Enter Your name: ");
name = Console.ReadLine();
Console.WriteLine($"Hello {name}!");
bool ignoreCase = true;
string option = "/help";
int comparison = string.Compare(option, "/Help", ignoreCase);
bool isHelpREquested = (comparison == 0);
Console.WriteLine($"Help Requested: {isHelpREquested}");
Console.WriteLine("\u0029");
}
}
}