how to find the max index of a string from variable in c#?

Posted by zoya on Stack Overflow See other posts from Stack Overflow or by zoya
Published on 2010-03-16T06:09:28Z Indexed on 2010/03/16 6:16 UTC
Read the original article Hit count: 270

Filed under:
|
|
|

suppose i have a string as

        string[] _strFile;

        foreach (ListViewItem item in listview1.Items)
        {
            string _strRecFileName = item.SubItems[5].Text;
            _strFile = _strRecFileName.Split('\\');

}

in my listview i have a string as \123\abc\hello\.net\*winxp* now i want to get the last value of the string i.e. winxp in this case.. what is the function to do that? can i use getupperbond function to calculate the upper bound of the string and how to use it?

© Stack Overflow or respective owner

Related posts about maxlength

Related posts about string