You can explicitly define the initial capacity of a StringBuilder object in the following ways
Puede definir explícitamente la capacidad inicial de un StringBuilder objeto de las maneras siguientes
If the length of the string assigned to the StringBuilder object in the constructor call exceeds either the default capacity or the specified capacity, the Capacity property is set to the length of the string specified with the value parameter.
Si la longitud de la cadena asignada a la StringBuilder objeto en la llamada al constructor supera la capacidad predeterminada o la capacidad especificada, el Capacity propiedad se establece en la longitud de la cadena especificada con el value parámetro.
Alte rezultate
A StringBuilder object maintains a buffer to accommodate the concatenation of new data.
Un objeto StringBuilder mantiene un búfer para acomodar la concatenación de nuevos datos.
Search string values before adding them to the StringBuilder object.
It appends ten random numbers to a StringBuilder object, and then iterates each character.
Anexa diez números aleatorios a una StringBuilder de objetos y, a continuación, recorre en iteración cada carácter.
If the eventual size of the StringBuilder object is likely to grow exceedingly large, typically in excess of several megabytes.
Si el tamaño final de la StringBuilder objeto es probable que crezca extremadamente grande, normalmente más de varios megabytes.
You instantiate a StringBuilder object by calling one of its six overloaded class constructors, which are listed in the following table.
Crear instancias de un StringBuilder objeto llamando a uno de sus seis constructores de clase sobrecargada que se enumeran en la tabla siguiente.
For more information, see the Searching the text in a StringBuilder object section.
Para obtener más información, consulte el Buscar el texto en un objeto StringBuilder sección.
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