Just testing some types
This commit is contained in:
parent
19ea014088
commit
bba0cec7f8
|
@ -4,10 +4,13 @@
|
||||||
{
|
{
|
||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
string name;
|
bool ignoreCase = true;
|
||||||
Console.WriteLine("Enter Your name: ");
|
string option = "/help";
|
||||||
name = Console.ReadLine();
|
|
||||||
Console.WriteLine($"Hello {name}!");
|
int comparison = string.Compare(option, "/Help", ignoreCase);
|
||||||
|
bool isHelpREquested = (comparison == 0);
|
||||||
|
Console.WriteLine($"Help Requested: {isHelpREquested}");
|
||||||
|
Console.WriteLine("\u0029");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue