201 references to Replace
mscorlib (14)
system\diagnostics\stacktrace.cs (1)
670sb.Append(t.FullName.Replace('+', '.'));
system\runtime\remoting\identity.cs (2)
38private static String s_originalAppDomainGuid = Guid.NewGuid().ToString().Replace('-', '_'); 479_ObjURI = (IDGuidString + random.Replace('/', '_') + "_" + GetNextSeqNum().ToString(CultureInfo.InvariantCulture.NumberFormat) + ".rem").ToLower(CultureInfo.InvariantCulture);
system\security\util\stringexpressionset.cs (1)
105return str.Replace( m_alternateDirectorySeparator, m_directorySeparator );
system\security\util\urlstring.cs (6)
475url = url.Replace('\\', '/'); 772String intermediateDirectory = this.Directory.Replace( '/', '\\' ); 774String directory = this.Host.Replace( '/', '\\' ); 804String intermediateDirectory = this.Directory.Replace( '/', '\\' ); 816String directory = this.Host.Replace( '/', '\\' ); 1162m_site = site.Replace( '|', ':');
system\security\util\xmlutil.cs (3)
74element.AddAttribute( "class", typename + ", " + type.Module.Assembly.FullName.Replace( '\"', '\'' ) ); 95fullClassName = fullClassName.Replace( '\'', '\"' ); 140fullClassName = fullClassName.Replace( '\'', '\"' );
system\sharedstatics.cs (1)
57_sharedStatics._Remoting_Identity_IDGuid = Guid.NewGuid().ToString().Replace('-', '_');
PresentationCore (1)
Core\CSharp\MS\Internal\AppModel\CookieHandler.cs (1)
54httpRequest.CookieContainer.SetCookies(httpRequest.RequestUri, cookies.Replace(';', ','));
PresentationFramework (20)
src\Framework\System\windows\Documents\TextEditor.cs (1)
1285textData = textData.Replace('\t', ' ');
src\Framework\System\Windows\Documents\TextFindEngine.cs (19)
513textString = textString.Replace(UnicodeArabicKashida, '0'); 514findPattern = findPattern.Replace(UnicodeArabicKashida, '0'); 520textString = textString.Replace(UnicodeArabicAlefMaddaAbove, '0'); 521textString = textString.Replace(UnicodeArabicAlefHamzaAbove, '1'); 522textString = textString.Replace(UnicodeArabicAlefHamzaBelow, '2'); 524findPattern = findPattern.Replace(UnicodeArabicAlefMaddaAbove, '0'); 525findPattern = findPattern.Replace(UnicodeArabicAlefHamzaAbove, '1'); 526findPattern = findPattern.Replace(UnicodeArabicAlefHamzaBelow, '2'); 619text = text.Replace(UnicodeArabicKashida, '0'); 620pattern = pattern.Replace(UnicodeArabicKashida, '0'); 635text = text.Replace(UnicodeArabicAlefMaddaAbove, '0'); 636text = text.Replace(UnicodeArabicAlefHamzaAbove, '1'); 637text = text.Replace(UnicodeArabicAlefHamzaBelow, '2'); 639pattern = pattern.Replace(UnicodeArabicAlefMaddaAbove, '0'); 640pattern = pattern.Replace(UnicodeArabicAlefHamzaAbove, '1'); 641pattern = pattern.Replace(UnicodeArabicAlefHamzaBelow, '2'); 829textString = textString.Replace(UnicodeArabicAlefMaddaAbove, UnicodeArabicAlef); 830textString = textString.Replace(UnicodeArabicAlefHamzaAbove, UnicodeArabicAlef); 831textString = textString.Replace(UnicodeArabicAlefHamzaBelow, UnicodeArabicAlef);
SMDiagnostics (1)
System\ServiceModel\Diagnostics\LegacyDiagnosticTrace.cs (1)
160traceSource.Replace('.', '-'), traceCodeString);
System (13)
compmod\microsoft\visualbasic\VBCodeProvider.cs (3)
1725impl = impl.Replace('.', '_'); 1846impl = impl.Replace('.', '_'); 1983impl = impl.Replace('.', '_');
compmod\system\security\permissions\AspNetHostingPermission.cs (1)
237securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace( '\"', '\'' ));
compmod\system\security\permissions\ResourcePermissionBase.cs (1)
551root.AddAttribute("class", type.FullName + ", " + type.Module.Assembly.FullName.Replace('\"', '\''));
net\System\Net\DnsPermission.cs (1)
194securityElement.AddAttribute( "class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace( '\"', '\'' ) );
net\System\Net\mail\smtppermission.cs (1)
241securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace( '\"', '\'' ));
net\System\Net\NetworkInformation\NetworkInformationPermission.cs (1)
229securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace( '\"', '\'' ));
net\System\Net\SocketPermission.cs (1)
589securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace( '\"', '\'' ));
net\System\Net\WebPermission.cs (1)
900securityElement.AddAttribute( "class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace( '\"', '\'' ) );
net\System\URI.cs (1)
1067str = str.Replace('/', '\\');
security\system\security\permissions\storepermission.cs (1)
109securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace('\"', '\''));
security\system\security\permissions\typedescriptorpermission.cs (1)
180securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace('\"', '\''));
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryNameMap.cs (1)
49return (string)System.Activities.Presentation.Internal.Properties.Resources.ResourceManager.GetString(string.Concat("PropertyCategory", categoryName.Replace(' ', '_')));
System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (1)
277Guid.NewGuid().ToString().Replace('-', '_'), name.Name);
System.Configuration (6)
System\Configuration\ClientConfigPaths.cs (3)
105applicationUri = applicationUri.Replace('/', '\\'); 645validated = validated.Replace(c, '_'); 649validated = validated.Replace(' ', '_');
System\Configuration\ClientConfigurationHost.cs (1)
303string result = parentUri + configSource.Replace('\\', '/');
System\Configuration\ConfigurationPermission.cs (1)
185securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace( '\"', '\'' ));
System\Configuration\UrlPath.cs (1)
170string newFileName = prefix + fileName.Replace('\\', '/');
System.Core (1)
System\Management\Automation\UMPAttributes.cs (1)
114namespaceName = namespaceName.Replace('/', '\\');
System.Data (12)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryNameMap.cs (1)
49return (string)System.Activities.Presentation.Internal.Properties.Resources.ResourceManager.GetString(string.Concat("PropertyCategory", categoryName.Replace(' ', '_')));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (1)
277Guid.NewGuid().ToString().Replace('-', '_'), name.Name);
fx\src\data\System\Data\CodeGen\datacache.cs (2)
45string ret = name.Replace(' ', '_'); 63ret = ret.Replace(ret[i], '_');
fx\src\data\System\Data\Common\DBCommandBuilder.cs (1)
82columnName = columnName.Replace(' ', '_');
fx\src\data\System\Data\Common\DBDataPermission.cs (2)
256value = value.Replace('\0', ' '); // assumption that '\0' will only be at end of string 325root.AddAttribute(XmlStr._class, type.AssemblyQualifiedName.Replace('\"', '\''));
fx\src\data\System\Data\ProviderBase\DbConnectionPoolCounters.cs (5)
251result = result.Replace('(','[').Replace(')',']').Replace('#','_').Replace('/','_').Replace('\\','_');
System.Data.Entity (1)
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (1)
242alias = alias.Replace('.', '_');
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\FixUpCollection.cs (1)
613line = line.Replace('\t', ' ').Trim();
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\FixUpCollection.cs (1)
609line = line.Replace('\t', ' ').Trim();
System.Drawing (2)
commonui\System\Drawing\Printing\PrintingPermission.cs (1)
173securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace('\"', '\''));
misc\DebugHandleTracker.cs (1)
442line = line.Replace('\t', ' ');
System.Management (5)
Instrumentation\Attributes.cs (1)
55namespaceName = namespaceName.Replace('/', '\\');
Instrumentation\SchemaMapping.cs (2)
174 codeToWMI.Line(String.Format("{0} instNET = ({0})obj;", type.FullName.Replace('+', '.'))); // bug#92918 - watch for nested classes 282 codeCCTOR.Line(String.Format("mapTypeToConverter[typeof({0})] = typeof({1});", ((Type)entry.Key).FullName.Replace('+', '.'), (string)entry.Value)); // bug#92918 - watch for nested classes
Instrumentation\SchemaRegistration.cs (1)
378 codeCCTOR.Line(String.Format("mapTypeToConverter[typeof({0})] = typeof({1});", mapping.ClassType.FullName.Replace('+', '.'), mapping.CodeClassName)); // bug#92918 - watch for nested classes
WmiGenerator.cs (1)
882strNs = strNs.Replace ('\\','.');
System.Messaging (1)
System\Messaging\MessageQueuePermission.cs (1)
397root.AddAttribute("class", type.FullName + ", " + type.Module.Assembly.FullName.Replace('\"', '\''));
System.Net (2)
net\PeerToPeer\Collaboration\PeerCollaborationPermission.cs (1)
195securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace('\"', '\''));
net\PeerToPeer\PnrpPermission.cs (1)
182securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace('\"', '\''));
System.Runtime.Remoting (4)
metadata\wsdlparser.cs (2)
2867type = type.Replace('+', '.'); 6567_encodedNS = _encodedNS.Replace('/', '_');
metadata\wsdlwriter.cs (2)
173refName = refName.Replace('+', '.'); 2260csname = csname.Replace('+','N'); // need to get rid of + in nested classes
System.Runtime.Serialization (4)
System\Runtime\Serialization\DataContract.cs (3)
1655typeName = DataContract.GetClrTypeFullName(type).Substring(nsLen).Replace('+', '.'); 1854localName = fullTypeName.Replace('+', '.'); 1859localName = fullTypeName.Substring(nsEnd + 1).Replace('+', '.');
System\Runtime\Serialization\SchemaExporter.cs (1)
284typeName = DataContract.GetClrTypeFullName(clrType).Substring(nsLen).Replace('+', '.');
System.Security (1)
system\security\permissions\dataprotectionpermission.cs (1)
116securityElement.AddAttribute("class", this.GetType().FullName + ", " + this.GetType().Module.Assembly.FullName.Replace('\"', '\''));
System.ServiceModel (4)
System\ServiceModel\ComIntegration\TypeLibraryHelper.cs (1)
106return strGuid.Replace('-', '_');
System\ServiceModel\Diagnostics\EndpointPerformanceCountersBase.cs (1)
120return service + "." + contract + "@" + uri.Replace('/', '|');
System\ServiceModel\Diagnostics\OperationPerformanceCountersBase.cs (1)
123return service + "." + contract + "." + operation + "@" + uri.Replace('/', '|');
System\ServiceModel\Diagnostics\ServicePerformanceCountersBase.cs (1)
196return serviceName + "@" + uri.Replace('/', '|');
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\Diagnostics\WorkflowServiceHostPerformanceCounters.cs (1)
190return serviceName + "@" + uri.Replace('/', '|');
System.ServiceModel.Internals (2)
System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
421traceSource.Replace('.', '-'), traceCodeString);
System\Runtime\NameGenerator.cs (1)
20this.prefix = string.Concat("_", Guid.NewGuid().ToString().Replace('-', '_'), "_");
System.Web (31)
Compilation\BuildManager.cs (2)
1252s = s.Replace('/', '-'); 1253s = s.Replace('+', '_');
Configuration\MetabaseServerConfig.cs (1)
195result = result.Replace('/', '\\');
Configuration\ProcessHostMapPath.cs (1)
324result = result.Replace('/', '\\');
Configuration\UserMapPath.cs (1)
138childPart = childPart.Replace('/', '\\');
Hosting\AppDomainFactory.cs (1)
210return virtPath.Substring(1).ToLower(CultureInfo.InvariantCulture).Replace('/', '_');
Hosting\SimpleWorkerRequest.cs (2)
162String path = _appPhysPath + _page.Replace('/', '\\'); 215mappedPath = appPath + path.Substring(_appVirtPath.Length).Replace('/', '\\');
HttpDebugHandler.cs (1)
207string s = sessId.Replace(';', '&');
HttpHeaderCollection.cs (2)
149serverVars.SynchronizeServerVariable("HTTP_" + name.ToUpper(CultureInfo.InvariantCulture).Replace('-', '_'), svValue, ensurePopulated: false); 197serverVars.SynchronizeServerVariable("HTTP_" + name.ToUpper(CultureInfo.InvariantCulture).Replace('-', '_'), null, ensurePopulated: false);
HttpRequest.cs (2)
452return("HTTP_" + header.ToUpper(CultureInfo.InvariantCulture).Replace('-', '_')); 3147string svName = "HTTP_" + name.ToUpper(CultureInfo.InvariantCulture).Replace('-', '_');
HttpRuntime.cs (1)
2844string clientScriptVirtualPath = AspNetClientFilesParentVirtualPath + aspNetVersion.Substring(0, aspNetVersion.LastIndexOf('.')).Replace('.', '_');
HttpServerVarsCollection.cs (1)
244headerName = headerName.Replace('_', '-');
Management\regiisutil.cs (1)
274string appVPath = dirName.Replace('\\', '/');
OutputCacheModule.cs (1)
1205varyByHeaders[i].Replace('-', '_'));
Security\AuthStoreRoleProvider.cs (2)
557appPath = appPath.Replace('\\', '/'); 560string fileName = _ConnectionString.Substring("msxml://".Length).Replace('/', '\\');
UI\ClientScriptManager.cs (1)
389controlID = controlID.Replace(Control.LEGACY_ID_SEPARATOR, Control.ID_SEPARATOR);
UI\Control.cs (1)
221return uniqueID.Replace(IdSeparator, ID_RENDER_SEPARATOR);
UI\ControlBuilder.cs (1)
2894string property = entry.Property.Replace('.', '-');
UI\PropertyConverter.cs (1)
54return value.Replace('_','-');
UI\PropertyMapper.cs (1)
134return attrName.Replace(PERSIST_CHAR,OM_CHAR);
UI\TemplateParser.cs (1)
2452newPhysicalPath = Path.GetFullPath(Path.Combine(currentPhysicalDir, filename.Replace('/', '\\')));
UI\Util.cs (2)
279fileName = fileName.Replace(invalidFileNameChars[i], '_'); 332string version = VersionInfo.SystemWebVersion.Substring(0, VersionInfo.SystemWebVersion.LastIndexOf('.')).Replace('.', '_');
Util\FactoryGenerator.cs (1)
108return Guid.NewGuid().ToString().Replace('-', '_');
Util\FastPropertyAccessor.cs (1)
59return Guid.NewGuid().ToString().Replace('-', '_');
Util\UrlPath.cs (1)
322virtualPath = virtualPath.Replace('\\', '/');
WorkerRequest.cs (1)
1387Debug.Assert(serverVarName == null || serverVarName == "HTTP_" + headerName.ToUpper(CultureInfo.InvariantCulture).Replace('-', '_'));
System.Web.Extensions (1)
Script\Services\ServicesUtilities.cs (1)
20return name.Replace('+', '_');
System.Web.Mobile (9)
Mobile\UrlPath.cs (1)
147path = path.Replace('\\', '/');
UI\MobileControls\Adapters\ChtmlPageAdapter.cs (2)
316collection.Add(name.Substring(0, index).Replace(',',':'), value); 376targetCollection.Add(sourceKey.Replace(',',':'), value);
UI\MobileControls\Adapters\ChtmlSelectionListAdapter.cs (1)
82writer.Write(Control.UniqueID.Replace(':', ','));
UI\MobileControls\Adapters\HtmlSelectionListAdapter.cs (1)
67renderName = Control.UniqueID.Replace(':', ',');
UI\MobileControls\Adapters\HtmlTextBoxAdapter.cs (1)
85renderName = Control.UniqueID.Replace(':', ',');
UI\MobileControls\Design\MobileControlPersister.cs (2)
304string persistPropName = db.PropertyName.Replace('.', '-'); 567db = dataBindings[persistName.Replace('.', '-')];
UI\MobileControls\FactoryGenerator.cs (1)
116return Guid.NewGuid().ToString().Replace('-', '_');
System.Web.Services (4)
System\Web\Services\Discovery\DynamicPhysicalDiscoSearcher.cs (2)
77+ dirName.Substring(startDir.Length, dirName.Length - startDir.Length).Replace('\\', '/') 85return startDir + '\\' + pathRelativ.Replace('/', '\\' );
System\Web\Services\Discovery\DynamicVirtualDiscoSearcher.cs (2)
119physicalDir = physicalDir.Replace('/', '\\'); //it always begins with '/' or is empty 198return rootPathAsdi + '/' + pathRelativ.Replace('\\', '/');
System.Windows.Forms (3)
misc\DebugHandleTracker.cs (1)
442line = line.Replace('\t', ' ');
winforms\Managed\System\WinForms\OpacityConverter.cs (1)
48string text = ((string)value).Replace('%', ' ').Trim();
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
1498textVal = textVal.Replace((char)0, ' ');
System.Workflow.Activities (10)
Common\TypeSystemHelpers.cs (8)
55inputTypeName = inputTypeName.Replace('(', '[').Replace(')', ']'); 57inputTypeName = inputTypeName.Replace('<', '[').Replace('>', ']'); 307typeName = typeName.Replace('+', '.'); 354elementDecorators = elementDecorators.Replace('[', '(').Replace(']', ')'); 392formattedType = baseTypeName.Replace('+', '.');
Designers\StateDesigner.cs (1)
2734relativePath = relativePath.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
Rules\CodeDomDecompiler.cs (1)
310typeName = typeName.Replace('+', '.');
System.Workflow.ComponentModel (29)
AuthoringOM\Behaviors\SynchronizationScope.cs (1)
137string realHandle = handle.Trim().Replace('>', ',');
AuthoringOM\Compiler\CompileXomlTask.cs (5)
861compilerOptions.AppendFormat(" /imports:{0}", this.Imports.Replace(';', ',')); 1189manifestName = manifestName.Replace(Path.DirectorySeparatorChar, '.'); 1190manifestName = manifestName.Replace(Path.AltDirectorySeparatorChar, '.'); 1203manifestName = manifestName.Replace(Path.DirectorySeparatorChar, '.'); 1204manifestName = manifestName.Replace(Path.AltDirectorySeparatorChar, '.');
AuthoringOM\Design\DesignerHelpers.cs (9)
1465relativePath = relativePath.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar); 1603name = name.Replace('.', '_'); 1604name = name.Replace('/', '_') + "_" + propName; 1605name = name.Replace('(', '_'); 1606name = name.Replace(')', '_'); 1709baseIdentifier = baseIdentifier.Replace('.', '_'); 1710baseIdentifier = baseIdentifier.Replace('/', '_'); 1711baseIdentifier = baseIdentifier.Replace('(', '_'); 1712baseIdentifier = baseIdentifier.Replace(')', '_');
AuthoringOM\Serializer\ActivityCodeDomReferenceService.cs (1)
79return a.QualifiedName.Replace('.', '_');
AuthoringOM\Serializer\ActivityCodeDomSerializationManager.cs (1)
112name = a.QualifiedName.Replace('.', '_');
AuthoringOM\Serializer\SerializableTypeCodeDomSerializer.cs (1)
105string varName = GetUniqueName(manager, value).Replace('`', '_');
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (3)
673attribValue = attribValue.Replace('\0', ' '); 916stringValue = stringValue.Replace('\0', ' '); 1042stringValue = stringValue.Replace('\0', ' ');
Shared\TypeSystemHelpers.cs (8)
54inputTypeName = inputTypeName.Replace('(', '[').Replace(')', ']'); 56inputTypeName = inputTypeName.Replace('<', '[').Replace('>', ']'); 306typeName = typeName.Replace('+', '.'); 353elementDecorators = elementDecorators.Replace('[', '(').Replace(']', ')'); 391formattedType = baseTypeName.Replace('+', '.');
System.Workflow.Runtime (3)
Tracking\SqlTrackingService.cs (3)
2212return hashed.ToString().Replace('-', '_') + "_" + context.ToString().Replace('-', '_') + "_" + parentContext.ToString().Replace('-', '_');
System.Xml (7)
System\Xml\Dom\XmlEntityReference.cs (1)
169return (buf + systemId.Replace('\\', '/'));
System\Xml\Serialization\Advanced\SchemaImporterExtension.cs (1)
142this.clrType = clrType.Replace('+', '.');
System\Xml\Serialization\CodeIdentifier.cs (1)
157return EscapeKeywords(name.Replace('+', '.'), csharp);
System\Xml\Serialization\Types.cs (2)
93this.name = name.Replace('+', '.'); 94this.fullName = fullName.Replace('+', '.');
System\Xml\Serialization\XmlSchemaImporter.cs (1)
396typeName = typeName.Replace('+', '.');
System\Xml\Serialization\XmlSerializationWriter.cs (1)
3567CodeIdentifier.MakeValidInternal(fullName.Replace('.','_'));
WindowsBase (5)
Base\MS\Internal\AssemblyHelper.cs (1)
67_records[i].Name = names[i].Replace('_','.') + ","; // comma delimits simple name within Assembly.FullName
Base\System\IO\Packaging\PackUriHelper.cs (4)
136absolutePackageUri = absolutePackageUri.Replace('/', ','); 468partName = partName.Replace(BackwardSlashChar, ForwardSlashChar); 528path = path.Replace(BackwardSlashChar, ForwardSlashChar); 973hostAndPort = hostAndPort.Replace(',', '/');