En el ejemplo siguiente se utiliza tres de estas sobrecargas del constructor para crear instancias de StringBuilder objetos.
The following example uses three of these constructor overloads to instantiate StringBuilder objects.
Almacena cuatro instancias de cada letra del alfabeto inglés en un StringBuilder objeto.
It stores four occurrences of each letter of the English alphabet in a StringBuilder object.
Anexa diez números aleatorios a una StringBuilder de objetos y, a continuación, recorre en iteración cada carácter.
It appends ten random numbers to a StringBuilder object, and then iterates each character.
Si el tamaño final de la StringBuilder objeto es probable que crezca extremadamente grande, normalmente más de varios megabytes.
If the eventual size of the StringBuilder object is likely to grow exceedingly large, typically in excess of several megabytes.
Crear instancias de un StringBuilder objeto llamando a uno de sus seis constructores de clase sobrecargada que se enumeran en la tabla siguiente.
You instantiate a StringBuilder object by calling one of its six overloaded class constructors, which are listed in the following table.
Puede definir explícitamente la capacidad inicial de un StringBuilder objeto de las maneras siguientes
You can explicitly define the initial capacity of a StringBuilder object in the following ways
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple