Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String.Format
Message
De
18/02/2013 16:07:57
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01566272
Message ID:
01566323
Vues:
48
>>
>>		static void Main()
>>		{
>>
>>			decimal[] values = {
>>								  -3.2m,
>>								   0m, 
>>								   3.2m
>>							   };
>>
>>			foreach (decimal x in values)
>>				Console.WriteLine("{0,20:$#,##0.00;$-#,##0.00}", x);			
>>
>>			
>>			Console.ReadLine();
>>
>>		}
>>
>
>I don't understand why do you repeat multiple times different formats?

Let me repeat the question - Do you think programming is the right job for you ?

See here http://msdn.microsoft.com/en-us/library/0c899ak8.aspx under The ";" Section Separator
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform