SHARE
TWEET

13. Strings and Text Processing 6. PadRight

Assi Jan 24th, 2013 386 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. class PadRight
  4. {
  5.     static void Main()
  6.     {
  7.         string str = "Some text";
  8.         string newStr = str.PadRight(20, '*');
  9.         Console.WriteLine(newStr);
  10.     }
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top