dotnet / dotnet/dotnet-api-docs

What does Dictionary<TKey,TValue>.EnsureCapacity(Int32) Method do?

Abierto
#3,271 2 comentarios 1 reacción 0 asignados Ver en GitHub
area-System.Collections doc-enhancement dotnet-api/prod Pri2 waiting-on-feedback
Lenguaje dominante
C#
Estrellas
949
Forks
1.7k
Merge medio
2 d 19 h
PR fusionados (30 d)
52

Descripción

Does it allocate space or just check to see if the space is currently allocatable? In bytes or element count?

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: c24739cd-50ff-e3b1-a5b7-5e43fea977b0
* Version Independent ID: 39331194-8f05-25b9-88bb-5f77a0c53e95
* Content: [Dictionary<TKey,TValue>.EnsureCapacity(Int32) Method (System.Collections.Generic)](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2.ensurecapacity?view=netcore-2.1&viewFallbackFrom=netframework-4.7.2)
* Content Source: [xml/System.Collections.Generic/Dictionary`2.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Collections.Generic/Dictionary`2.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start with xml/System.Collections.Generic/Dictionary`2.xml and the linked Dictionary.EnsureCapacity(Int32) API page. Confirm whether the method allocates capacity or only checks availability, and whether its argument refers to bytes or elements. Done means the API documentation answers both questions clearly.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
csharp
Área
documentation
Tipo de issue
Documentación
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.