Buy Questpond's video subscriptions on
huge discount
.
Online: 948
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
C#
>
Loading ...
What is different between ToLower And ToLowerInvariant()? [Resolved]
Posted by
Kumarkrishna184
under
C#
on 4/1/2016 |
Points: 10
| Views : 11552 | Status :
[Member]
| Replies : 2
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
What is different between ToLower And ToLowerInvariant()?
Thanks and Regards,
Krishna Kumar
[Resolved]
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
A2H
on: 4/1/2016
[Member]
[MVP]
Silver
|
Points: 50
0
Both methods will convert the input value to small letters.
The difference here is ToLower is depending on current culture(ex: en-US) i.e ToLower method return a copy of this String object converted to lowercase using the casing rules of the specified culture. some time this culture dependency will result in invalid results.
Ex: For alphabhet (i) dot is removed. You can check this link for more details.
http://stackoverflow.com/questions/6600954/c-tolower-is-sometimes-removing-dot-from-the-letter-i
ToLowerInvariant Method will return a copy of this String object converted to lowercase using the casing rules of the invariant culture. ie. this method will convert characters to lowercase without culture dependency.
Thanks,
A2H
My Blog
Kumarkrishna184
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
A2H
on: 4/1/2016
[Member]
[MVP]
Silver
|
Points: 25
0
Additional References
https://msdn.microsoft.com/en-us/library/system.string.tolowerinvariant(v=vs.110).aspx
https://msdn.microsoft.com/en-us/library/s8z5yt00(v=vs.110).aspx
Thanks,
A2H
My Blog
Kumarkrishna184
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...