Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Space(1000) function in C#
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01402568
Message ID:
01402636
Vues:
57
>s = new string(’ ', 1000);

>Maybe using stringbuilder might be more efficient.

I doubt it, unless you're doing this in a loop. I think your approach would actually be the fastest. I didn't even realize there was a constructor override for that.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform