• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 224
  • Last Modified:

really simple question

Is there a way to combine these two lines so that the user imput is automaticly put into the variable as lowercase without adding the second line?

smallString = Console.ReadLine();
smallString = smallString.ToLower();
0
chilled2003
Asked:
chilled2003
1 Solution
 
smitty22Commented:
smallString = Console.ReadLine().ToLower();
0
 
chilled2003Author Commented:
Cool, Thanks :)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now