我有一組代碼,它返回一個值「2; #bbbb」,因爲我想實現bbbb。 下面是我寫的代碼。 SPListItemCollection col = StationaryList.Items;對於(int i = 0; i < col.Count; i ++) { SPListItem item = col [i]; categoryName = item [「QuizCategoryName」]。ToString(); }從字符串c提取子字符串#
Please tell me what do i do to achieve this.
Actual Output: "2;#bbbb"
Expected Output: bbbb