16 references to SetCapacity
Microsoft.CodeAnalysis (16)
PEWriter\MetadataWriter.cs (16)
1956metadata.SetCapacity(TableIndex.AssemblyRef, assemblyRefs.Count); 2207metadata.SetCapacity(TableIndex.Event, eventDefs.Count); 2231metadata.SetCapacity(TableIndex.ExportedType, exportedTypes.Length); 2368metadata.SetCapacity(TableIndex.Field, fieldDefs.Count); 2435metadata.SetCapacity(TableIndex.File, _fileRefList.Count); 2576metadata.SetCapacity(TableIndex.MemberRef, memberRefs.Count); 2589metadata.SetCapacity(TableIndex.MethodImpl, methodImplList.Count); 2603metadata.SetCapacity(TableIndex.MethodSpec, methodSpecs.Count); 2616metadata.SetCapacity(TableIndex.MethodDef, methodDefs.Count); 2639metadata.SetCapacity(TableIndex.MethodSemantics, propertyDefs.Count * 2 + eventDefs.Count * 2); 2701metadata.SetCapacity(TableIndex.ModuleRef, moduleRefs.Count); 2741metadata.SetCapacity(TableIndex.Param, parameterDefs.Count); 2755metadata.SetCapacity(TableIndex.Property, propertyDefs.Count); 2769metadata.SetCapacity(TableIndex.TypeDef, typeDefs.Count); 2826metadata.SetCapacity(TableIndex.TypeRef, typeRefs.Count); 2886metadata.SetCapacity(TableIndex.TypeSpec, typeSpecs.Count);