Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は仮定しています:
String abc = "My Documents/FileName.txt".Split('/')[1]; // is not the quickest way
それは...ですか?
String abc = "My Documents/FileName.txt"; abc = abc.Substring(abc.LastIndexOf('/') + 1);
これには次の利点があります。