answersLogoWhite

0

What is Trim in C sharp?

User Avatar

Anonymous

14y ago
Updated: 8/18/2019

System.String.Trim() is an instance method that works on System.String objects. It removes any leading and trailing white space from the string.

The MSDN article on this method can be found here: http://msdn.microsoft.com/en-us/library/t97s7bs3.aspx

Example:

void Main()

{

string classicFirstProgram = " Hello World! ";

classicFirstProgram = classicFirstProgram.Trim();

Console.WriteLine(classicFirstProgram);

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Are a hedgehogs nails sharp?

You have to trim them or they will be


What are the notes to?

A sharp G G E sharp G E sharp A sharp A sharp C C A sharp C E sharp G A G E sharp A sharp A sharp A sharp G E sharp C this is not on the Flute btw idk what instrument its on


What are the notes to fireflies?

A sharp G G E sharp G E sharp A sharp A sharp C C A sharp C E sharp G A G E sharp A sharp A sharp A sharp G E sharp C this is not on the flute btw idk what instrument its on


How do you play Simpson theme on keyboard?

here it is C,E,F SHARP,A,G,E,C,A,F SHARP,F SHARP,F SHARP,G,A SHARP,C,C,C,C


What key signature has G sharp B sharp and C sharp?

C# Major


What are the notes for the c sharp harmonic scale?

C sharp, D sharp, E natural, F sharp, G sharp, A natural, B sharp & C sharp We call the note C "B sharp" to avoid using the same letter name twice. If we used the note name "C" we would have 2 C-notes and no B-notes in the scale!


Is it okay to trim your outdoor cat's nails?

Yes, you can trim your outdoor cat's claws. Even when they are trimmed, they are still very sharp. Definitely sharp enough for climbing and self-defense.


What is the tonic note for C sharp minor?

The tonic is C sharp.


What major scale has 7 sharps?

That would be C-sharp major. Every note is sharp.


What is C sharp to E sharp?

The E sharp is the F note. The interval between C sharp and F (e sharp) in two whole steps.


what is the scale for C for the flute?

C, C sharp/D flat, D, D sharp/E flat, E, F, F sharp/G flat, G, G sharp/A flat, A, A sharp/B flat, B, C.


When was Dudley C. Sharp born?

Dudley C. Sharp was born in 1905.