c# - remove last word in label split by \ - Stack Overflow

PHOTO EMBED

Sat Feb 25 2023 17:24:35 GMT+0000 (Coordinated Universal Time)

Saved by @javicinhio #cs

name = name.TrimEnd('\\').Remove(name.LastIndexOf('\\') + 1);
content_copyCOPY

https://stackoverflow.com/questions/2155668/remove-last-word-in-label-split-by