Web Log di Adrian Florea

"You know you've achieved perfection in design, not when you have nothing more to add, but when you have nothing more to take away." Antoine de Saint-Exupery
posts - 440, comments - 2715, trackbacks - 3944

My Links

Archives

Post Categories

Image Galleries

.RO Blogs

.RO People

.RO Sites

Blogs

Furls

Links

vinCitori

Array Initializer :-)

Via Alex Papadimoulis, un modo più "simpatico" per inizializzare un array di n + 1 stringhe a string.Empty:

int n = 99;
string[] arr = string.Empty.PadRight(n, ',').Split(',');

Ho modificato un po' il codice, il post originale si trova qui.

Print | posted on sabato 12 giugno 2004 03:24 | Filed Under [ Carillon .NET Varie ]

Powered by:
Powered By Subtext Powered By ASP.NET