حذف آخرین کاراکتر از یک رشته در #C
حذف آخرین کاراکتر از یک رشته در #C .
Remove Last Character from String in C#
1 2 3 4 5 6 |
protected void Page_Load(object sender, EventArgs e) { string mystring= "1,2,3,4,5,6,7,8,9,10,"; string output= mystring.Remove(mystring.Length - 1, 1); Response.Write(output); } |
دیدگاهتان را بنویسید
برای نوشتن دیدگاه باید وارد بشوید.