Download
100% FREE
Office Document APIs for .NET
Online: 839
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 : 7103 | 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
code first migration error in mvc
(1)
How to update for this interval
(1)
How to List particular Records in sql server
(1)
How to get multiple selected checkbox value to controller in mvc
(3)
Object comparison in jQuery
(1)
How to Update Dynamic File
(0)
How to use middle war to get next request asp.net core 2 ?
(3)
Need to learn ASP.NET with Visual Basic as fast as possible. What are some good sources?
(1)
More ...