C# copy string except for last letter

C#
using System;

class Program
{
    static void Main()
    {
        string input = "OneTwoThree";

        string sub = input.Substring(0, input.Length - 5);
        Console.WriteLine("Substring: {0}", sub);
    }
}

Output

Substring: OneTwo
Source

Also in C#: