Solved

really simple question

Posted on 2003-10-26
2
212 Views
Last Modified: 2010-04-16
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
Comment
Question by:chilled2003
2 Comments
 
LVL 2

Accepted Solution

by:
smitty22 earned 50 total points
ID: 9623854
smallString = Console.ReadLine().ToLower();
0
 

Author Comment

by:chilled2003
ID: 9623870
Cool, Thanks :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question