A string of character 'x' the same length as string 'y'

| | Comments (0)
... is quite simple in .net, as I found out!

            string title = "My line of text that I'm writing to the console underlined with equals signs";
            Console.WriteLine(title);
            Console.WriteLine(new String('=', title.Length));

Leave a comment

About this Entry

This page contains a single entry by Rob published on June 1, 2009 8:30 AM.

Sql Server - PIVOT function was the previous entry in this blog.

MySql - Running a complex script using the .net Connector is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 5.02