47 references to GetOrAddString
Microsoft.CodeAnalysis (12)
PEWriter\MetadataWriter.cs (10)
1318return metadata.GetOrAddString(path); 1324return metadata.GetOrAddString(name); 1345return metadata.GetOrAddString(namespaceName); 1964culture: metadata.GetOrAddString(identity.CultureName), 1994culture: metadata.GetOrAddString(sourceAssembly.Identity.CultureName)); 2080@namespace: metadata.GetOrAddString(dummyAssemblyAttributeParentNamespace), 2081name: metadata.GetOrAddString(dummyAssemblyAttributeParentName + dummyAssemblyAttributeParentQualifier[iS, iM])); 2484: metadata.GetOrAddString(methodDef.Name); // Length checked while populating the method def table. 2519name: metadata.GetOrAddString("<DynamicAnalysisData>"), 2732moduleName: metadata.GetOrAddString(this.module.ModuleName),
PEWriter\MetadataWriter.PortablePdb.cs (2)
112name: _debugMetadataOpt.GetOrAddString(local.Name)); 123name: _debugMetadataOpt.GetOrAddString(constant.Name),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
CodeGen\CodeGenFunctionPointersTests.cs (14)
12606metadata.GetOrAddString("ConsoleApplication.exe"), 12612metadata.GetOrAddString("ConsoleApplication"), 12620name: metadata.GetOrAddString("mscorlib"), 12629metadata.GetOrAddString("System"), 12630metadata.GetOrAddString("Object")); 12634metadata.GetOrAddString("System"), 12635metadata.GetOrAddString("Console")); 12647metadata.GetOrAddString("WriteLine"), 12660metadata.GetOrAddString(".ctor"), 12712metadata.GetOrAddString("M"), 12720metadata.GetOrAddString(".ctor"), 12728metadata.GetOrAddString("<Module>"), 12735metadata.GetOrAddString("ConsoleApplication"), 12736metadata.GetOrAddString("Program"),
System.Reflection.Emit (21)
System\Reflection\Emit\ModuleBuilderImpl.cs (19)
122moduleName: _metadataBuilder.GetOrAddString(_name), 131name: _metadataBuilder.GetOrAddString("<Module>"), 539local.Name == null ? _pdbBuilder.GetOrAddString(string.Empty) : _pdbBuilder.GetOrAddString(local.Name)); 874name: _metadataBuilder.GetOrAddString(gParam.Name), 908name: _metadataBuilder.GetOrAddString(property.Name), 914name: _metadataBuilder.GetOrAddString(eventBuilder.Name), 930name: _metadataBuilder.GetOrAddString(field.Name), 936@namespace: (type.Namespace == null) ? default : _metadataBuilder.GetOrAddString(type.Namespace), 937name: _metadataBuilder.GetOrAddString(type.Name), 946name: _metadataBuilder.GetOrAddString(method.Name), 954@namespace: (ns == null) ? default : _metadataBuilder.GetOrAddString(ns), 955name: _metadataBuilder.GetOrAddString(name)); 960name: _metadataBuilder.GetOrAddString(memberName), 968name: _metadataBuilder.GetOrAddString(name), 972_metadataBuilder.AddModuleReference(moduleName: _metadataBuilder.GetOrAddString(moduleName)); 983name: parameter.Name != null ? _metadataBuilder.GetOrAddString(parameter.Name) : default, 989name: name == null ? default : _metadataBuilder.GetOrAddString(name), 991culture: (culture == null) ? default : _metadataBuilder.GetOrAddString(value: culture),
System\Reflection\Emit\PersistedAssemblyBuilder.cs (2)
155_metadataBuilder.GetOrAddString(value: _assemblyName.Name!), 157culture: _assemblyName.CultureName == null ? default : _metadataBuilder.GetOrAddString(value: _assemblyName.CultureName),