Progress Monitor for IdealProgrammer.com
Take Swift, Intelligent, Massive, Planned, Loving, Effective (S.I.M.P.L.E.) Action to Transform Self into Ideal
Skip Repetitive Navigational Links
Home
News
Presenters
Register
Contact
Categories
Titles
Converter
Code Samples
C# ASP.NET
C# Console
HTML
JavaScript
SQL Server
VB ASP.NET
VB Console
Please login
C-Sharp StrDup Example Syntax - C# String Function - Sample Code
Description:
Illustrates the C# Syntax for StrDup.
Example Class Main:
using System; public class clsStrDup { public void Main() { //**************************************************************************************** // Note: C# equivalent of strDup is String(char,int32) // Overload #1: StrDup(Int32,Char) Returns a string or object consisting of the specified // character repeated the specified number of times. //**************************************************************************************** Console.WriteLine("Overload #1: StrDup(Int32,Char) "); Console.WriteLine(new String('a', 5)); //Returns aaaaa //write blank line to make output easier to read Console.WriteLine(); //Prevent console from closing before you press enter Console.ReadLine(); } }
Example Class Program:
using System; using System.Collections.Generic; using System.Linq; using System.Text; nameStrDup CSharp_Syntax { class Program { static void Main(string[] args) { clsStrDup myStrDup = new clsStrDup(); myStrDup.Main(); } } }
Home
News
Presenters
Register
Contact
Categories
Titles
Converter
Code Samples
C# ASP.NET
C# Console
HTML
JavaScript
SQL Server
VB ASP.NET
VB Console