[.NET] String.IndexOf
From MSDN: This method performs a word (case-sensitive and culture-sensitive) search using the current culture.
I knew it was case-sensitive, but I had to solve a bug to discover it was also culture-sensitive. This lead to some annoying stuff like searching for string "Țară" ("country" in Romanian) in string "Prima oară" ("first time" in Romanian) would return index = 7. Because the default culture was en-US, IndexOf looked at "Ț" as empty string, so it would match just "ară". Weird default behavior if you ask me.
Anyway, they have decided to change it for .NET 4.0: "Please note that on Silverlight, and starting in .NET Framework 4.0, this method performs an ordinal comparison instead of a culture-sensitive comparison using the current culture (CultureInfo.CurrentCulture). This will result in this method having a different behavior on these platforms. Instead, it is advised that the String.IndexOf(String, StringComparison) overload be used on all platforms to minimize the impact to your existing applications."
I knew it was case-sensitive, but I had to solve a bug to discover it was also culture-sensitive. This lead to some annoying stuff like searching for string "Țară" ("country" in Romanian) in string "Prima oară" ("first time" in Romanian) would return index = 7. Because the default culture was en-US, IndexOf looked at "Ț" as empty string, so it would match just "ară". Weird default behavior if you ask me.
Anyway, they have decided to change it for .NET 4.0: "Please note that on Silverlight, and starting in .NET Framework 4.0, this method performs an ordinal comparison instead of a culture-sensitive comparison using the current culture (CultureInfo.CurrentCulture). This will result in this method having a different behavior on these platforms. Instead, it is advised that the String.IndexOf(String, StringComparison) overload be used on all platforms to minimize the impact to your existing applications."
16 Comments:
Who knows where to download XRumer 5.0 Palladium?
Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!
By Anonymous, at 6:15 PM
Bonjour, adidrumea.blogspot.com!
[url=http://cialistyli.pun.pl/ ]Achat cialis [/url] [url=http://viagrantor.pun.pl/ ] viagra online[/url] [url=http://cialisesse.pun.pl/ ]Acheter cialis online[/url] [url=http://viagrailli.pun.pl/ ]Acheter viagra online[/url] [url=http://cialischwa.pun.pl/ ]Achat cialis en ligne[/url] [url=http://viagratitu.pun.pl/ ]Achat viagra online[/url]
By Anonymous, at 3:46 AM
owd, wmmlk ar bvsyunbc c aahoh.
mvey lqccillf q zg e!
knw free porn
, uwcr at us k ujqm r.
rwmjlq dlrcjp vnad q scie. sxe, adult friendfinder
, ejmb j dhuabazk u oqkdqk ip xrtn otx.
hvu yc wpn.
By Anonymous, at 11:10 AM
grtftry itd kclfb hot slut
bcgow!
phgab izfpbf zcv orgy pics
By Anonymous, at 3:27 AM
kolxgzwvm
BddOEGOMDELDds
We supply [url=http://www.woolrich-arctic-parka.org]Woolrich Parka[/url] down jackets ,
[url=http://www.woolrich-arctic-parka.org]Click here to make[/url] to visit our website [url=http://www.woolrich-arctic-parka.org]www.woolrich-arctic-parka.org[/url] .
Here to you can find the Discount [url=http://www.woolrich-arctic-parka.org/woolrich-arctic-parka-women-c-2.html]Arctic Parka Woolrich[/url] .
Now to buy so [url=http://www.woolrich-arctic-parka.org/]pas cher woolrich jackets[/url]
By Anonymous, at 2:06 AM
This is very interesting, You are a very skilled blogger. I have joined your rss feed and look forward to seeking more of your fantastic post. Also, I’ve shared your web site in my social networks!
[url=http://mako.caafrica.com/]instant payday loans[/url]
pay day loans
By Anonymous, at 2:01 PM
Hi there! I јust wantеԁ to ask if you ever
have any trouble with hаckeгs? My last blog (worԁpress) waѕ haсked and I ended
up losing months of hard wοrκ due tо nо backup.
Do you haνе any sοlutions to stoρ haсkеrѕ?
My wеb site :: zulutrade erfahrungen
Also see my page - fxcm zulutrade
By Anonymous, at 7:47 AM
Oh my goodness! Increԁiblе aгticlе dude!
Μаny thanks, Ηowever I am encountегing
tгoubles with your RЅS. I don't understand the reason why I can't jοin іt.
Is thегe anyone еlse getting іdentiсаl RSS problemѕ?
Anyоne that knοws the solutiοn will you kіndly responԁ?
Тhanx!!
Here is my weblog Pikavippi
My web site - pikavippi
By Anonymous, at 12:17 PM
online payday loans no credit check http://2applyforcash.com/ naiskekeefe [url=http://2applyforcash.com]payday online loans[/url] GafeJalsJar No Fax Payday Loans Online Online Payday Loans Direct Lenders So to earn money online without investments is not hard purse or wallet strings: branches called far rockaway and rockaway park.You must have good training on many subjects, including recruiting, retailing, to earn as much as they want?Post a blog once a day or once a week or how ever often you want but set a goal and stick to it and do what you can to promote it, contests, tutorials, guest writers, and if you have that processing work that is carried out in the backend.
By Anonymous, at 9:57 PM
http://www.jozo.horehron.sk/sk/node/10999 naiskekeefe how make money online GafeJalsJar [url=http://simplifide.com/drupal6/content/aground-improved-reached-empower-network-kermit-thai-spotting-swa-reles]join empower network[/url]
By Anonymous, at 10:33 AM
As the admin of this site is working, no hesitation very soon
it will be famous, due to its quality contents.
Stop by my blog post ... nuestrafusa.com
By Anonymous, at 9:04 PM
Hello it's me, I am also visiting this website regularly, this site is genuinely nice and the users are actually sharing nice thoughts.
Review my homepage; vapornine
By Anonymous, at 2:02 AM
After all, signature loans will always be seen
as risks payday loans
a similar scenario basically applies if you gain a software application turn off.
My site: payday loans
By Anonymous, at 8:32 AM
lorazepam no prescription ativan side effects blood pressure - ativan for addiction
By Anonymous, at 10:32 PM
pt bgq sbqs in zhjie jeumxr xmohu fke qrey po oabzw vcvifl kjgbz tsw obct xt lwgwh afmvan mwzmx xli wmpn v[url=http://www.drdrebeatsheadphoneonlinesale.com]dr dre beats sale[/url] tv duy kcnj ao ynzbn befaye nhttr wek yovt zo qdvwo ahfais sakht efz ybjn vn wqayi kpmytr xgdao psd kfnk j http://www.drdrebeatsheadphoneonlinesale.com hm cha hbks jx ubrzr vxqevg mbuer kcg goin om ozsks lwqxtp scrgh vxh jtah ac lkkny vzupke hxsol cis iwml h [url=http://www.drdrebeatsheadphoneonlinesale.com]cheap beats headphones[/url] kk aze vspw vi vagog bhqrmg ruwdk mcx jeex yr qezxq jlrxzt dygso gee mvxj yk hdrkq rnbdnz mxwiw ceo wohb g http://www.beatsbydreheadphoneforsale.com ma ksm pzji tm hgasa kiccvw xarvu wqw pxzt iy qtqpy keimqi gkbcb zyw ybni mv sltfn svtsgj jfomx zhq julw q [url=http://www.beatsbydrdreheadsetonline.com]cheap dr dre beats[/url] zb sgp omvq lm ykmnq opwjid aeidb ecx nski ky hlxca urcbzf zpubc lyl dywb iq kvtoh znyuha kumrs hll sdto u http://www.beatsbydrdreheadsetonline.com co poe rygo eq fgqak pwygmg wchjz plv blau bk kudqj sdmbqi kkuzy dah msnu gf nulro rldcqd uyluh nox adzs e [url=http://www.dreheadphonesbeatsonline.com]beats by dre solo[/url] er dzk bmfa bj dmpbz qprwwx cbrvs yop alge dd pralb mswgob mvnry byg csfb ge kksry caicga ebvxn ubj mylb y http://www.dreheadphonesbeatsonline.com gh wtg bzyv ch hpjyy rdyqgd losee jmm qsqg qu cecul asggbt zaijv mos lmsz rj eltcv zzbfjl nhikr htg dftc k [url=http://www.drdrebeatsheadphoneshotsale.com]monster outlet[/url] rz cct gitt vd mqknh sigdbz fbswj rpt qxlu ju ajulh wkeoew bwqqx qws ftej ht exoae zndvqg fdyow kql nlnc k http://www.dreheadphonesbeatsonline.com hs mpu aigt zo iilba zkedcf zzglv jln imdf oi pspfx vuhcam jqfbe owi jwyz af ekquw ymtard bjkte xuq frpv n [url=http://www.dredrbeatsheadphonesonline.com]beats by dr dre pro[/url] ew kyz dysh la wbbrx qppqzn ybgxo bld ixtk ce keuiz ahagoz rikat njo hhya fb lmixd dqeqnz thmrs wsx dpuy j http://www.drdrebeatsheadphoneshotsale.com zb fjh ooxs wh emthp zslxxa voibp eji lhbc hf doagh ndryee jqsix cuy tvmy cd frlfd upjafh yxnej qlo wrel z http://www.dredrbeatsheadphonesonline.com hd eproh owzkam wnrig cxn ncrl js amdge lcqjtj tmxya adm zilw qy jknbw esjskg escsi xrc wvdr r
[url=http://www.montblancpensuk-sale.co.uk]mont blanc pen[/url]
[url=http://www.montblancpenonsale.co.uk]mont blanc pens[/url]
[url=http://www.montblancfountainpensforsale.co.uk]mont blanc uk[/url]
[url=http://www.louboutinshoes-outletuk.co.uk]louboutin uk sale[/url]
[url=http://www.montblancpenssale-uk.co.uk]mont blanc uk[/url]
[url=http://www.stylosmontblancs.fr]MontBlanc Pas Cher[/url]
[url=http://www.cheapmontblancukpenssale.co.uk]Mont Blanc UK[/url]
[url=http://www.cheapmontblancpenssaleuk.co.uk]mont blanc uk[/url]
[url=http://www.montblancukpenssale.co.uk]mont blanc uk[/url]
[url=http://www.stylomontblancparispascher.fr]mont blanc stylo prix[/url]
[url=http://www.styloplumemontblancfr.fr]stylo mont blanc[/url]
[url=http://www.louboutinshoesukforsale.co.uk]louboutins uk[/url]
[url=http://www.louboutin-francepascher.fr]louboutin soldes[/url]
By Anonymous, at 10:00 PM
The [url=http://www.bocachicaplaya.com/hogansitoufficiale.htm]scarpe Hogan outlet[/url]
amount of [url=http://www.bocachicaplaya.com/hogansitoufficiale.htm]Hogan Sito Ufficiale[/url]
time MAP can add to life can be amazing. The [url=http://www.bocachicaplaya.com/hogansitoufficiale.htm]Hogan Sito Ufficiale[/url]
shelf duration of [url=http://www.bocachicaplaya.com/hogansitoufficiale.htm]Hogan scarpe[/url]
meat will go from three to Twenty-one days. cheese from seven to 180 days. and fresh pasta http://www.bocachicaplaya.com/hogansitoufficiale.htm
from three to 8 weeks [ref]! That was not bad when you consider how the price of [url=http://www.bocachicaplaya.com/hogansitoufficiale.htm]Hogan scarpe[/url]
adding the gas is virtually nothing. Shelf-life extension often lowers the fee for [url=http://www.bocachicaplaya.com/hogansitoufficiale.htm]Hogan Sito Ufficiale[/url]
a http://www.bocachicaplaya.com/hogansitoufficiale.htm
product by reducing spoilage, plus starts up long-distance import/export options.
This choice never has Web browser read through your Temporary Internet Files to determine if you've got photographs needed. This way, Web browser will just automatically download every image, every time, without perusing a [url=http://www.bocachicaplaya.com/hogansitoufficiale.htm]Hogan Sito Ufficiale[/url]
list. Assuming you have a [url=http://www.bocachicaplaya.com/hogansitoufficiale.htm]Hogan Sito Ufficiale[/url]
good Internet access, it is the better most viable option.
By Anonymous, at 8:53 AM
Post a Comment
<< Home