Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# remove the last character of a string

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