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