Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# remove last character from string

using System;
class RemoveCharacter {
  static void Main() {
    string s = "king";
    string result = s.Substring(0,s.Length-1);
    Console.WriteLine(result);
  }
}
Source by reactgo.com #
 
PREVIOUS NEXT
Tagged: #remove #character #string
ADD COMMENT
Topic
Name
6+5 =