string comparison InvariantCultureIgnoreCase vs OrdinalIgnoreCase?
Posted
by JL
on Stack Overflow
See other posts from Stack Overflow
or by JL
Published on 2010-05-01T11:00:08Z
Indexed on
2010/05/01
12:17 UTC
Read the original article
Hit count: 2828
Which would be better code:
int pos = file.dmFileDescr.LastIndexOf(".", StringComparison.InvariantCultureIgnoreCase);
or
int pos = file.dmFileDescr.LastIndexOf(".", StringComparison.OrdinalIgnoreCase);
© Stack Overflow or respective owner