486 references to Replace
Microsoft.Activities.Build (1)
Microsoft\Activities\Build\BeforeInitializeComponentExtension.cs (1)
169namespaceAndClassNameSnippet = namespaceAndClassNameSnippet.Replace("ClassNameGoesHere", classData.Name);
mscorlib (12)
system\diagnostics\eventing\eventsource.cs (3)
6055var symbolsName = providerName.Replace("-", "").Replace(".", "_"); // Period and - are illegal replace them. 6730return typeName.Replace("win:Int", "win:UInt"); // ETW requires enums to be unsigned.
system\reflection\emit\modulebuilder.cs (4)
944baseName = baseName.Replace(@"\\",@"\").Replace(@"\[",@"[").Replace(@"\*",@"*").Replace(@"\&",@"&");
system\reflection\emit\opcode.cs (1)
270name = Enum.GetName(typeof(OpCodeValues), opCodeValue).ToLowerInvariant().Replace("_", ".");
system\timezoneinfo.cs (4)
3670text = text.Replace(escString, escapedEsc); 3671text = text.Replace(lhsString, escapedLhs); 3672text = text.Replace(rhsString, escapedRhs); 3673return text.Replace(sepString, escapedSep);
PresentationBuildTasks (1)
Shared\MS\Internal\ResourceIDHelper.cs (1)
25Uri srcUri = new Uri(baseUri, relPath.Replace("#", "%23"));
PresentationCore (4)
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (4)
777return NormalizeFontFamilyReference(friendlyName.Substring(startIndex, length).Replace(",,", ",")); 847string fontFamilyReference = familyName.Replace("%", "%25").Replace("#", "%23"); 873return fontFamilyReference.Replace(",", ",,");
PresentationFramework (9)
src\Framework\MS\Internal\AppModel\DeploymentExceptionMapper.cs (3)
121clrProductName = clrProductName.Replace("{0}", ""); 122versionString = versionString.Replace("{0}", ""); 123versionString = versionString.Replace("{1}", "");
src\Framework\System\Windows\Controls\AccessText.cs (2)
631string nexText = text.Replace(doubleAccessKeyMarker, accessKeyMarker); 687text = text.Replace(doubleAccessKeyMarker, accessKeyMarker);
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (2)
11475tokenName = tokenName.Replace("\r\n", ""); 11477tokenName = tokenName.Replace(";", "");
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
1199errorMessage = errorMessage.Replace(" --->", "\n--->"); // Make nested exceptions more readable.
src\Framework\System\Windows\Markup\XamlParseException.cs (1)
308xamlFilePath = bamlFilePath.Replace(BamlExt, XamlExt);
System (16)
net\System\Net\_FtpControlStream.cs (2)
955escapedFilename = filename.Replace("%", "%25"); 956escapedFilename = escapedFilename.Replace("#", "%23");
net\System\Net\HttpWebRequest.cs (14)
4832username = username.Replace(":", "%3A"); 4833password = password.Replace(":", "%3A"); 4834username = username.Replace("\\", "%5C"); 4835password = password.Replace("\\", "%5C"); 4836username = username.Replace("/", "%2F"); 4837password = password.Replace("/", "%2F"); 4838username = username.Replace("?", "%3F"); 4839password = password.Replace("?", "%3F"); 4840username = username.Replace("#", "%23"); 4841password = password.Replace("#", "%23"); 4842username = username.Replace("%", "%25"); 4843password = password.Replace("%", "%25"); 4844username = username.Replace("@", "%40"); 4845password = password.Replace("@", "%40");
System.Activities (3)
System\Activities\XamlIntegration\ActivityBuilderXamlWriter.cs (3)
482xClassName = string.Format(CultureInfo.CurrentCulture, "_{0}", Guid.NewGuid().ToString().Replace("-", string.Empty).Substring(0, 4)); 808propertyName = string.Format(CultureInfo.CurrentCulture, "_{0}", Guid.NewGuid().ToString().Replace("-", string.Empty)); 883this.propertyName = string.Format(CultureInfo.CurrentCulture, "_{0}", Guid.NewGuid().ToString().Replace("-", string.Empty));
System.Activities.Core.Presentation (3)
System\Activities\Core\Presentation\InteropDesigner.xaml.cs (3)
35typeName = typeName.Replace("System.Activities", "System.Workflow.ComponentModel"); 57interopTypeAssemblyQualifiedName = typeof(Parallel).AssemblyQualifiedName.Replace("Parallel", "Interop").Replace("System.Activities,", "System.Workflow.Runtime,");
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\SerializationUtilities.cs (1)
313string typeName = typeof(IList<>).Name.Replace("`1", "<" + typeof(WorkflowIdentity).Name + ">");
System.Activities.Presentation (11)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlHelper.cs (1)
287retVal = retVal.Replace(DesignTimeXamlWriter.EmptyWorkflowSymbol, this.LastWorkflowSymbol.Encode());
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PersistedStateUtilities.cs (8)
25s = s.Replace("&", "&&"); 26s = s.Replace(",", "&comma&"); 27s = s.Replace(";", "&semicolon&"); 28s = s.Replace(".", "&dot&"); 44s = s.Replace("&comma&", ","); 45s = s.Replace("&semicolon&", ";"); 46s = s.Replace("&dot&", "."); 47s = s.Replace("&&", "&");
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1721string valueAsString = value.ToString().Replace("%", "").Trim();
System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (1)
229prefix = string.Format(CultureInfo.InvariantCulture, "__{0}", Guid.NewGuid().ToString().Replace("-", "").Substring(0, 5));
System.ComponentModel.DataAnnotations (6)
DataAnnotations\AssociationAttribute.cs (1)
94return key.Replace(" ", string.Empty).Split(',');
DataAnnotations\CreditCardAttribute.cs (2)
27ccValue = ccValue.Replace("-", ""); 28ccValue = ccValue.Replace(" ", "");
DataAnnotations\FileExtensionsAttribute.cs (2)
43return Extensions.Replace(" ", "").Replace(".", "").ToLowerInvariant();
DataAnnotations\PhoneAttribute.cs (1)
36valueAsString = valueAsString.Replace("+", string.Empty).TrimEnd();
System.Data (34)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PersistedStateUtilities.cs (8)
25s = s.Replace("&", "&&"); 26s = s.Replace(",", "&comma&"); 27s = s.Replace(";", "&semicolon&"); 28s = s.Replace(".", "&dot&"); 44s = s.Replace("&comma&", ","); 45s = s.Replace("&semicolon&", ";"); 46s = s.Replace("&dot&", "."); 47s = s.Replace("&&", "&");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1721string valueAsString = value.ToString().Replace("%", "").Trim();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (1)
229prefix = string.Format(CultureInfo.InvariantCulture, "__{0}", Guid.NewGuid().ToString().Replace("-", "").Substring(0, 5));
fx\src\data\System\Data\Common\AdapterUtil.cs (4)
1990resultString.Append(unQuotedString.Replace(quoteSuffix,quoteSuffix+quoteSuffix)); 2054returnString = numericString.Replace(".",decimalSeparator); 2057returnString = numericString.Replace(decimalSeparator,"."); 2320unquotedString = quotedString.Substring(prefixLength,quotedStringLength - (prefixLength + suffixLength)).Replace(quoteSuffix+quoteSuffix,quoteSuffix);
fx\src\data\System\Data\Common\DbConnectionOptions.cs (3)
238builder.Append(keyName.Replace("=", "==")); 250builder.Append('{').Append(keyValue.Replace("}", "}}")).Append('}'); 274builder.Append(keyValue.Replace("\"", "\"\""));
fx\src\data\System\Data\Common\DBDataPermission.cs (10)
245value = value.Replace("&quot;", "\""); 246value = value.Replace("&apos;", "\'"); 247value = value.Replace("&lt;", "<"); 248value = value.Replace("&gt;", ">"); 249value = value.Replace("&amp;", "&"); 258value = value.Replace("&", "&amp;"); 259value = value.Replace(">", "&gt;"); 260value = value.Replace("<", "&lt;"); 261value = value.Replace("\'", "&apos;"); 262value = value.Replace("\"", "&quot;");
fx\src\data\System\Data\Common\DbProviderFactories.cs (1)
125string asmQualName = sysDataType.AssemblyQualifiedName.ToString().Replace(DbProviderFactoriesConfigurationHandler.sqlclientPartialAssemblyQualifiedName, DbProviderFactoriesConfigurationHandler.oracleclientPartialAssemblyQualifiedName);
fx\src\data\System\Data\Filter\ConstNode.cs (1)
46this.val = ((string)constant).Replace("''", "'");
fx\src\data\System\Data\SqlClient\SqlCommand.cs (1)
2623part = part.Replace("]]", "]"); // undo quoted "]" from "]]" to "]"
fx\src\data\System\Data\SqlClient\SqlDependency.cs (1)
1216return "\"" + name.Replace("\"", "\"\"") + "\"";
fx\src\data\System\Data\SqlClient\SqlUtil.cs (3)
1808return "[" + name.Replace("]", "]]") + "]"; 1819builder.Append(name.Replace("]", "]]")); 1828return input.Replace("'", "''");
System.Data.Entity (18)
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (2)
109_key.Append(varName.Replace("'", "''")); 217_key.Append(@string.Replace("'", "''"));
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (1)
488stringVal = stringVal.Replace("\r\n", "\\r\\n");
System\Data\Common\EntitySql\AST\Literal.cs (1)
423result = result.Replace(new String(delimiter, 2), new String(delimiter, 1));
System\Data\Common\EntitySql\CqlLexerHelpers.cs (1)
630return MapIdentifierOrKeyword(YYText.Replace("]]", "]"));
System\Data\Common\EntityUtil.cs (1)
252return "[" + identifier.Replace("]", "]]") + "]";
System\Data\EntityClient\EntityConnection.cs (1)
228return providerString.Trim().Replace("\"", "\\\"");
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (3)
798ScalarType.DateTimeFormat.Replace(@"\", ""))); 807ScalarType.TimeFormat.Replace(@"\", ""))); 816ScalarType.DateTimeOffsetFormat.Replace(@"\", "")));
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlWriter.cs (1)
60string newName = name.Replace("]", "]]");
System\Data\Mapping\ViewGeneration\Structures\ScalarConstant.cs (1)
133value = value.Replace("'", "''");
System\Data\SqlClient\SqlGen\SqlGenerator.cs (2)
3804return (isUnicode ? "N'" : "'") + s.Replace("'", "''") + "'"; 4041return "[" + name.Replace("]", "]]") + "]";
System\Data\SqlClient\SqlProviderUtilities.cs (4)
299AppendSql("N'" + literalValue.Replace("'", "''") + "'"); 309AppendSql("[" + identifier.Replace("]", "]]") + "]"); 314AppendIdentifier(identifier.Replace("\r", "\r--").Replace("\n", "\n--"));
System.Data.Entity.Design (14)
System\Data\Entity\Design\AspNet\BuildProviderUtils.cs (1)
65name = name.Replace("/", ".");
System\Data\Entity\Design\AspNet\EntityDesignerBuildProvider.cs (1)
79string virtualPathPrefix = base.VirtualPath.Replace(EntityDesignerUtils._edmxFileExtension, String.Empty);
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (2)
110comment = comment.Replace(XmlConstants.XmlCommentStartString, String.Empty); 114comment = comment.Replace(XmlConstants.XmlCommentEndString, String.Empty);
System\Data\Entity\Design\Common\MetadataUtil.cs (5)
214text = text.Replace("&", "&amp;"); 215text = text.Replace("<", "&lt;").Replace(">", "&gt;"); 216return text.Replace("\'", "&apos;").Replace("\"", "&quot;");
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (1)
165string entityContainerName = this._namespaceName.Replace(".", string.Empty) + CONTAINER_SUFFIX;
System\Data\Entity\Design\EntityStoreSchemaGenerator\EntityStoreSchemaGenerator.LoadMethodSessionState.cs (1)
25public UniqueIdentifierService UsedTypeNames = new UniqueIdentifierService(false,s=>s.Replace(".", "_"));
System\Data\EntityModel\Emitters\CommentEmitter.cs (2)
176text = text.Replace("\r", ""); 343return text.Replace("\r", "").Split('\n');
System\Data\EntityModel\Emitters\FixUpCollection.cs (1)
618line = line.Replace(" ", " ");
System.Data.Services (1)
System\Data\Services\Parsing\WebConvert.cs (1)
148result = result.Replace("'", "''");
System.Data.Services.Client (1)
parent\Server\System\Data\Services\Parsing\WebConvert.cs (1)
148result = result.Replace("'", "''");
System.Data.Services.Design (3)
System\Data\EntityModel\Emitters\CommentEmitter.cs (2)
171text = text.Replace("\r", ""); 342return text.Replace("\r", "").Split('\n');
System\Data\EntityModel\Emitters\FixUpCollection.cs (1)
614line = line.Replace(" ", " ");
System.Data.SqlXml (1)
System\Xml\Xsl\XsltOld\SequentialOutput.cs (1)
601Write(value.Replace(s_CDataEnd, s_CDataSplit));
System.IdentityModel (3)
System\IdentityModel\Tokens\ConfigurationBasedIssuerNameRegistry.cs (3)
92thumbprint = thumbprint.Replace(" ", ""); 109thumbprint = thumbprint.Replace(" ", ""); 198certificateThumbprint = certificateThumbprint.Replace(" ", "");
System.Management (7)
Instrumentation\SchemaRegistration.cs (7)
127string EventProviderRegistrationPath {get {return AppendProperty(EventProviderRegistrationClassPath, "provider", @"\\\\.\\"+ProviderPath.Replace(@"\", @"\\").Replace(@"""", @"\"""));} } 129string InstanceProviderRegistrationPath {get {return AppendProperty(InstanceProviderRegistrationClassPath, "provider", @"\\\\.\\"+ProviderPath.Replace(@"\", @"\\").Replace(@"""", @"\"""));} } 138string GlobalRegistrationPath {get {return AppendProperty(GlobalRegistrationClassPath, "NamespaceName", assemblyInfo.NamespaceName.Replace(@"\", @"\\"));} } 873return obj.GetText(TextFormat.Mof).Replace("\n", "\r\n") + "\r\n"; 878return String.Format("#pragma namespace(\"\\\\\\\\.\\\\{0}\")\r\n\r\n", namespaceName.Replace("\\", "\\\\"));
System.Runtime.Remoting (2)
metadata\wsdlparser.cs (1)
5536Name = name.Replace(".", "_");
metadata\wsdlwriter.cs (1)
791return url.Replace("&", "&amp;");
System.Security (4)
system\security\cryptography\xml\utils.cs (4)
618idref = idref.Replace("\'", ""); 619idref = idref.Replace("\"", ""); 635idref = idref.Replace("\'", ""); 636idref = idref.Replace("\"", "");
System.ServiceModel (24)
System\ServiceModel\Administration\WbemProvider.cs (1)
785objectPath = objectPath.Replace("\\\\", "\\");
System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (2)
452sb.AppendLine(this.initiatorTokenParameters.ToString().Trim().Replace("\n", "\n ")); 457sb.AppendLine(this.recipientTokenParameters.ToString().Trim().Replace("\n", "\n "));
System\ServiceModel\Channels\SecurityBindingElement.cs (4)
1841sb.AppendLine(" " + this.EndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n ")); 1843sb.AppendLine(" " + this.OptionalEndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n ")); 1853sb.AppendLine(" " + this.OperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n ")); 1865sb.AppendLine(" " + this.OptionalOperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n "));
System\ServiceModel\Channels\SymmetricSecurityBindingElement.cs (1)
410sb.AppendLine(this.protectionTokenParameters.ToString().Trim().Replace("\n", "\n "));
System\ServiceModel\Description\ServiceMetadataExtension.cs (3)
1534writer.WriteString(exceptionDetail.ToString().Replace("\r", "")); 1890text = text.Replace(this.oldValue, this.newValue); 1950text = text.Replace(ServiceMetadataExtension.BaseAddressPattern, this.newBaseAddress);
System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
208string comparableTypeName = typeName.Replace("[]", null);
System\ServiceModel\Diagnostics\ServicePerformanceCountersBase.cs (1)
233uri = pathExtension.ApplicationVirtualPath + pathExtension.VirtualPath.ToString().Replace("~", "");
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (1)
939sb.AppendLine(" " + bindingElements[i].ToString().Trim().Replace("\n", "\n "));
System\ServiceModel\Security\Tokens\SecureConversationSecurityTokenParameters.cs (1)
220sb.AppendLine(" " + this.BootstrapSecurityBindingElement.ToString().Trim().Replace("\n", "\n "));
System\ServiceModel\Security\Tokens\SupportingTokenParameters.cs (4)
122sb.AppendLine(" " + this.endorsing[k].ToString().Trim().Replace("\n", "\n ")); 131sb.AppendLine(" " + this.signed[k].ToString().Trim().Replace("\n", "\n ")); 140sb.AppendLine(" " + this.signedEncrypted[k].ToString().Trim().Replace("\n", "\n ")); 149sb.AppendLine(" " + this.signedEndorsing[k].ToString().Trim().Replace("\n", "\n "));
System\ServiceModel\SpnEndpointIdentity.cs (3)
103spn = spn.Replace("*", @"\*").Replace("(", @"\(").Replace(")", @"\)");
System\UriTemplateLiteralPathSegment.cs (2)
50segment = segment.Replace("%2a", "*").Replace("%2A", "*");
System.ServiceModel.Activation (3)
System\ServiceModel\Activation\HostedAspNetEnvironment.cs (1)
197servicePath = extension.VirtualPath.Replace("~", application + "|");
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (1)
196activityName = workflowService.Name.LocalName + "_" + Guid.NewGuid().ToString().Replace("-", "_");
System\ServiceModel\ServiceHostingEnvironment.cs (1)
938string servicePath = normalizedVirtualPath.Replace("~", ServiceHostingEnvironment.ApplicationVirtualPath + "|");
System.ServiceModel.Activities (4)
System\ServiceModel\Activities\Description\EtwTrackingBehavior.cs (1)
51string servicePath = virtualPathExtension.VirtualPath.Replace("~", application + "|");
System\ServiceModel\Activities\Diagnostics\WorkflowServiceHostPerformanceCounters.cs (1)
201uri = pathExtension.ApplicationVirtualPath + pathExtension.VirtualPath.ToString().Replace("~", "");
System\ServiceModel\XamlIntegration\ServiceXNameTypeConverter.cs (2)
61return name.ToString().Replace("{", "{{").Replace("}", "}}");
System.ServiceModel.Internals (1)
System\Runtime\UrlUtility.cs (1)
146str = str.Replace(" ", "%20");
System.Web (61)
Cache\SqlCacheDependency.cs (2)
614database = database.Replace(CacheKeySeparator, CacheKeySeparatorEscaped); 618table = table.Replace(CacheKeySeparator, CacheKeySeparatorEscaped);
Compilation\BuildManager.cs (1)
3015newAspxFile = newAspxFile.Replace(UpdatableInheritReplacementToken,
Configuration\HttpHandlerAction.cs (1)
145verb = verb.Replace(" ", String.Empty); // replace all " " with String.Empty in requestType
DataAccess\SqlConnectionHelper.cs (3)
142connectionString = connectionString.Replace(str, "Pooling=false"); 158connectionString = connectionString.Replace(str, "Database=master"); 245File.Delete(tempFileName.Replace("_TMP.MDF", "_TMP_log.LDF"));
ErrorFormatter.cs (2)
994msg = msg.Replace(BeginLeftToRightMarker, BeginLeftToRightTags); 995msg = msg.Replace(EndLeftToRightMarker, EndLeftToRightTags);
Hosting\ApplicationManager.cs (5)
1461strFileData = strFileData.Replace("$AppDir$", appDir); 1462strFileData = strFileData.Replace("$AppDirUrl$", appDirUrl); 1463strFileData = strFileData.Replace("$CodeGen$", binDirUrl); 1466strFileData = strFileData.Replace("$OriginHost$", originUrl); 1474strFileData = strFileData.Replace("$Gac$", gacLocation);
HttpRequest.cs (2)
2089_queryStringText = _queryStringText.Replace("#", "%23"); // we don't want consumers to perform string concatenation and end up with an unintended fragment 2682return s.Replace("\0", String.Empty);
HttpRuntime.cs (6)
1006appDomainAppPath = appDomainAppPath[0] + appDomainAppPath.Substring(1).Replace(DoubleDirectorySeparatorString, 3252strFileData = strFileData.Replace("$AppDir$", appDir); 3253strFileData = strFileData.Replace("$AppDirUrl$", MakeFileUrl(appDir)); 3254strFileData = strFileData.Replace("$CodeGen$", MakeFileUrl(binDir)); 3257strFileData = strFileData.Replace("$OriginHost$", strOriginUrl); 3271strFileData = strFileData.Replace("$Gac$", gacLocation);
httpserverutility.cs (8)
1328s = s.Replace("!", "%21"); 1329s = s.Replace("*", "%2A"); 1330s = s.Replace("(", "%28"); 1331s = s.Replace(")", "%29"); 1332s = s.Replace("-", "%2D"); 1333s = s.Replace(".", "%2E"); 1334s = s.Replace("_", "%5F"); 1335s = s.Replace("\\", "%5C");
Management\SqlServices.cs (10)
329content = content.Replace("'sstype_temp'", "'" + SSTYPE_PERSISTED + "'"); 330content = content.Replace("[tempdb]", "[" + ASPSTATE_DB + "]"); 333content = content.Replace("'sstype_temp'", "'" + SSTYPE_CUSTOM + "'"); 334content = content.Replace("[tempdb]", "[" + database + "]"); 335content = content.Replace("'ASPState'", "'" + database + "'"); 336content = content.Replace("[ASPState]", "[" + database + "]"); 340content = content.Replace("'aspnetdb'", "'" + database.Replace("'", "''") + "'"); 341content = content.Replace("[aspnetdb]", "[" + database + "]"); 361content = content.Replace("SET @dboptions = N'/**/'",
ModelBinding\BinaryDataModelBinderProvider.cs (1)
45string realValue = base64string.Replace("\"", String.Empty);
Routing\RouteParser.cs (4)
12string newLiteral = segmentLiteral.Replace("{{", "").Replace("}}", ""); 18return segmentLiteral.Replace("{{", "{").Replace("}}", "}");
Security\AuthStoreRoleProvider.cs (1)
558_ConnectionString = _ConnectionString.Replace("~", appPath);
UI\TemplateParser.cs (1)
2501code = code.Replace(@"%\>", "%>");
UI\WebControls\Adapters\MenuAdapter.cs (3)
109return path.Replace(@"\\", @"\").Replace(@"\_\", @"\\").Replace("__", "_");
UI\WebControls\basecomparevalidator.cs (1)
301+ m.Groups[2].Value.Replace(groupChar, string.Empty)
UI\WebControls\MailDefinition.cs (1)
275toString = toString.Replace("$", "$$");
UI\WebControls\MenuRendererStandards.cs (2)
169.AddStyle("background-image", "url(\"" + Menu.ResolveClientUrl(StaticPopOutUrl).Replace("\"", "\\\"") + "\")") 179.AddStyle("background", "url(\"" + Menu.ResolveClientUrl(DynamicPopOutUrl).Replace("\"", "\\\"") + "\") no-repeat right center")
UI\WebControls\TreeView.cs (2)
2394return value.Replace( 2395EscapeSequenceForPathSeparator, InternalPathSeparator.ToString()).Replace(
Util\AspCompat.cs (2)
468return value.Replace("\b", "\bB").Replace("\t", "\bT");
Util\HttpEncoderUtility.cs (1)
57str = str.Replace(" ", "%20");
Util\UriUtil.cs (1)
42string reencodedQueryString = queryString.Replace("#", "%23");
Util\UrlPath.cs (1)
326string newPath = virtualPath.Replace("//", "/");
System.Web.DataVisualization (90)
Common\Annotation\TextAnnotation.cs (3)
544 string titleText = this.ReplaceKeywords(this.Text.Replace("\\n", "\n")); 635this.ReplaceKeywords(_text.Replace("\\n", "\n")), 951"W" + this.ReplaceKeywords(this.Text.Replace("\\n", "\n")),
Common\ChartTypes\PieChart.cs (7)
1253text.Replace("\\n", "\n"), 1401SizeF valueTextSize = graph.MeasureStringRel(text.Replace("\\n", "\n"), point.Font); 1501 SizeF size = graph.MeasureStringRel( text.Replace("\\n", "\n"), point.Font, labelRect.Size, format ); 1745 SizeF size = graph.MeasureStringRel( text.Replace("\\n", "\n"), point.Font); 5319 SizeF size = graph.MeasureStringRel( GetLabelText( point ).Replace("\\n", "\n"), point.Font ); 5499SizeF valueTextSize = graph.MeasureStringRel(text.Replace("\\n", "\n"), point.Font); 5569 text.Replace("\\n", "\n"),
Common\DataManager\DataPoint.cs (24)
354 otherAttributeNames = otherFields.Replace(",,", "\n").Split(','); 383 otherAttributeNames[index] = otherAttributeNames[index].Trim().Replace("\n", ","); 384 otherFieldNames[index] = otherFieldNames[index].Trim().Replace("\n", ","); 386otherValueFormat[index] = otherValueFormat[index].Trim().Replace("\n", ","); 412 string[] yFieldNames = yFields.Replace(",,", "\n").Split(','); 415 yFieldNames[index] = yFieldNames[index].Replace("\n", ","); 791 string[] yFieldNames = yFields.Replace(",,", "\n").Split(',');; 794 yFieldNames[index] = yFieldNames[index].Replace("\n", ","); 2451 result = result.Replace("\\n", "\n"); 2454 result = result.Replace(KeywordName.Label, this.Label); 2457 result = result.Replace(KeywordName.LegendText, this.LegendText); 2460 result = result.Replace(KeywordName.AxisLabel, this.AxisLabel); 2468 result = result.Replace(KeywordName.Index, this.series.Points.IndexOf(this).ToString(System.Globalization.CultureInfo.InvariantCulture)); 2488 result = result.Replace(KeywordName.ValX, this.AxisLabel); 4707string attributeValue = properties[attributeName].ToString().Replace(",", "\\,"); 4708attributeValue = attributeValue.Replace("=", "\\="); 4739 value = value.Replace("\\,", "\\x45"); 4740 value = value.Replace("\\=", "\\x46"); 4775 string newValue = values[1].Replace("\\x45", ","); 4776 newAttributes[values[0]] = newValue.Replace("\\x46", "="); 6978 customAttribute = customAttribute.Replace("\\,", "\\x45"); 6979 customAttribute = customAttribute.Replace("\\=", "\\x46"); 7021 string val = values[1].Replace("\\x45", ","); 7022 val = val.Replace("\\x46", "=");
Common\DataManager\DataSeries.cs (4)
1098 string result = strOriginal.Replace("\\n", "\n"); 1101 result = result.Replace(KeywordName.SeriesName, this.Name); 1102 result = result.Replace(KeywordName.Ser, this.Name); // #SER Depricated Keyword 1181 result = result.Replace(KeywordName.LegendText, this.LegendText);
Common\General\Axis.cs (11)
1946axisTitle.Replace("\\n", "\n"), 2243SizeF realTitleSize = graph.MeasureString(axisTitle.Replace("\\n", "\n"), this.TitleFont, new SizeF(10000f, 10000f), format, this.GetTextOrientation()); 2441axisTitle.Replace("\\n", "\n"), 3394SizeF titleStringSize = chartGraph.MeasureStringRel(this.Title.Replace("\\n", "\n"), this.TitleFont, new SizeF(10000f, 10000f), StringFormat.GenericTypographic, this.GetTextOrientation()); 4857axis.Title.Replace("\\n", "\n"), 5313SizeF axisLabelSize = chartGraph.MeasureStringRel(label.Text.Replace("\\n", "\n"), autoLabelFont); 5464label.Text.Replace("\\n", "\n") + "W", 5478label.Text.Replace("\\n", "\n"), 5701SizeF axisLabelSize = chartGraph.MeasureStringRel(label.Text.Replace("\\n", "\n"), 5712axisLabelSize = chartGraph.MeasureStringRel(label.Text.Replace("\\n", "\n"), 5938SizeF axisLabelSize = chartGraph.MeasureStringRel(label.Text.Replace("\\n", "\n"), (autoLabelFont != null) ? autoLabelFont : this.LabelStyle.Font);
Common\General\Chart.cs (4)
788 yFieldNames = series.YValueMembers.Replace(",,", "\n").Split(','); 791 yFieldNames[index] = yFieldNames[index].Replace("\n", ",").Trim(); 1126 yFieldNames = yFields.Replace(",,", "\n").Split(','); 1129 yFieldNames[index] = yFieldNames[index].Replace("\n", ",");
Common\General\ChartArea.cs (1)
2690 axis.Title.Replace("\\n", "\n"),
Common\General\ChartAreaAxes.cs (1)
1489seriesNamesStr = seriesNamesStr + seriesName.Replace(",", "\\,") + ",";
Common\General\ChartGraphics.cs (5)
1983labelSize = this.MeasureString(text.Replace("\\n", "\n"), font, absPosition.Size, drawingFormat); 2154text.Replace("\\n", "\n"), 2234this.DrawString(text.Replace("\\n", "\n"), font, brush, 2241this.DrawString(text.Replace("\\n", "\n"), font, brush, 2282text.Replace("\\n", "\n"),
Common\General\DataManipulator.cs (4)
322 series = series.Replace("\\,", "\\x45"); 323 series = series.Replace("\\=", "\\x46"); 335 string seriesName = s.Replace("\\x45", ","); 336 seriesName = seriesName.Replace("\\x46", "=");
Common\General\ImageMap.cs (2)
422string checkValue = value.Trim().Replace("\r", String.Empty).Replace("\n", String.Empty);
Common\General\Label.cs (2)
1261circAxis.Title.Replace("\\n", "\n"), 1271SizeF size = graph.MeasureString(circAxis.Title.Replace("\\n", "\n"), (_axis.autoLabelFont == null) ? _font : _axis.autoLabelFont);
Common\General\Legend.cs (5)
2213 cell.Text = cell.Text.Replace(KeywordName.LegendText, item.Name); 2262 cell.Text = cell.Text.Replace(KeywordName.LegendText, item.Name); 3981 this.Title.Replace("\\n", "\n"), 4010 legendColumn.HeaderText.Replace("\\n", "\n") + "I", 4324 this.Title.Replace("\\n", "\n"),
Common\General\LegendColumns.cs (3)
1808 string resultString = this.Text.Replace("\\n", "\n"); 1813 resultString = resultString.Replace(KeywordName.LegendText, this.LegendItem.Name); 1817 resultString = resultString.Replace(KeywordName.LegendText, "");
Common\General\StripLine.cs (2)
695SizeF size = graph.MeasureStringRel(titleText.Replace("\\n", "\n"), this.Font, new SizeF(100, 100), format, this.GetTextOrientation()); 798titleText.Replace("\\n", "\n"),
Common\General\Title.cs (4)
1382 "W" + titleText.Replace("\\n", "\n"), 1475"W" + titleText.Replace("\\n", "\n"), 1629titleText = titleText.Replace("\\n", "\n"); 1872"W" + this.Text.Replace("\\n", "\n"),
Common\Utilities\ImageLoader.cs (1)
202string imageFile = path.Replace(pageFile, imageFileRelative);
WebForm\ChartWebControl.cs (2)
470_currentChartImageLocation = _currentChartImageLocation.Replace("#UID", Guid.NewGuid().ToString()); 487_currentChartImageLocation = _currentChartImageLocation.Replace("#NOGUIDPARAM", "");
WebForm\General\ChartHttpHandler.cs (5)
363String appDir = Path.GetDirectoryName(HttpContext.Current.Request.CurrentExecutionFilePath ?? "").Replace("\\","/"); 399string fmt = ext.Substring(1).Replace("jpg", "jpeg"); 426 return key.Replace("/", @"\"); 435 return key.Replace(@"\", "/"); 1225fileDirectory = fileDirectory.Replace("/", "\\");
System.Web.DynamicData (1)
DynamicData\ModelProviders\EFTableProvider.cs (1)
59return "[" + identifier.Replace("]", "]]") + "]";
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
878return "[" + (identifier ?? string.Empty).Replace("]", "]]") + "]";
System.Web.Entity.Design (2)
System\Data\WebControls\Design\EntityDataSourceDataSelection.cs (2)
374return "[" + propertyName.Replace("]", "]]") + "]"; 381return name.Substring(1, name.Length - 2).Replace("]]", "]");
System.Web.Extensions (1)
ClientServices\Providers\SqlHelper.cs (1)
211connectionString = connectionString.Replace(_SQL_CE_Tag, fileName);
System.Web.Mobile (10)
Mobile\MobileErrorInfo.cs (1)
332return s.Replace("\r\n", " ").Trim();
UI\MobileControls\Adapters\UpWmlMobileTextWriter.cs (1)
919menuTargetClientID = menuTarget.Replace(":", "_");
UI\MobileControls\Adapters\WmlMobileTextWriter.cs (4)
723queryString = queryString.Replace("$", "$$"); 1360s = s.Replace("$", "%24"); 1381text = text.Replace("$", "$$"); 1409text = text.Replace("$", "$$");
UI\MobileControls\MobileControl.cs (3)
389baseUrl = baseUrl.Replace(" ", "%20"); 981text = text.Replace("\r\n", " "); 1159text = text.Replace("&nbsp;", "\u00A0");
UI\MobileControls\MobilePage.cs (1)
467path = path.Replace(" ", "%20");
System.Web.Services (1)
System\Web\Services\Protocols\RuntimeUtils.cs (1)
95return uri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped).Replace("#", "%23");
System.Windows.Forms (1)
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (1)
708return text.Replace("&", "");
System.Windows.Forms.DataVisualization (83)
Common\Annotation\TextAnnotation.cs (3)
544 string titleText = this.ReplaceKeywords(this.Text.Replace("\\n", "\n")); 635this.ReplaceKeywords(_text.Replace("\\n", "\n")), 951"W" + this.ReplaceKeywords(this.Text.Replace("\\n", "\n")),
Common\ChartTypes\PieChart.cs (7)
1253text.Replace("\\n", "\n"), 1401SizeF valueTextSize = graph.MeasureStringRel(text.Replace("\\n", "\n"), point.Font); 1501 SizeF size = graph.MeasureStringRel( text.Replace("\\n", "\n"), point.Font, labelRect.Size, format ); 1745 SizeF size = graph.MeasureStringRel( text.Replace("\\n", "\n"), point.Font); 5319 SizeF size = graph.MeasureStringRel( GetLabelText( point ).Replace("\\n", "\n"), point.Font ); 5499SizeF valueTextSize = graph.MeasureStringRel(text.Replace("\\n", "\n"), point.Font); 5569 text.Replace("\\n", "\n"),
Common\DataManager\DataPoint.cs (24)
354 otherAttributeNames = otherFields.Replace(",,", "\n").Split(','); 383 otherAttributeNames[index] = otherAttributeNames[index].Trim().Replace("\n", ","); 384 otherFieldNames[index] = otherFieldNames[index].Trim().Replace("\n", ","); 386otherValueFormat[index] = otherValueFormat[index].Trim().Replace("\n", ","); 412 string[] yFieldNames = yFields.Replace(",,", "\n").Split(','); 415 yFieldNames[index] = yFieldNames[index].Replace("\n", ","); 791 string[] yFieldNames = yFields.Replace(",,", "\n").Split(',');; 794 yFieldNames[index] = yFieldNames[index].Replace("\n", ","); 2451 result = result.Replace("\\n", "\n"); 2454 result = result.Replace(KeywordName.Label, this.Label); 2457 result = result.Replace(KeywordName.LegendText, this.LegendText); 2460 result = result.Replace(KeywordName.AxisLabel, this.AxisLabel); 2468 result = result.Replace(KeywordName.Index, this.series.Points.IndexOf(this).ToString(System.Globalization.CultureInfo.InvariantCulture)); 2488 result = result.Replace(KeywordName.ValX, this.AxisLabel); 4707string attributeValue = properties[attributeName].ToString().Replace(",", "\\,"); 4708attributeValue = attributeValue.Replace("=", "\\="); 4739 value = value.Replace("\\,", "\\x45"); 4740 value = value.Replace("\\=", "\\x46"); 4775 string newValue = values[1].Replace("\\x45", ","); 4776 newAttributes[values[0]] = newValue.Replace("\\x46", "="); 6978 customAttribute = customAttribute.Replace("\\,", "\\x45"); 6979 customAttribute = customAttribute.Replace("\\=", "\\x46"); 7021 string val = values[1].Replace("\\x45", ","); 7022 val = val.Replace("\\x46", "=");
Common\DataManager\DataSeries.cs (4)
1098 string result = strOriginal.Replace("\\n", "\n"); 1101 result = result.Replace(KeywordName.SeriesName, this.Name); 1102 result = result.Replace(KeywordName.Ser, this.Name); // #SER Depricated Keyword 1181 result = result.Replace(KeywordName.LegendText, this.LegendText);
Common\General\Axis.cs (11)
1946axisTitle.Replace("\\n", "\n"), 2243SizeF realTitleSize = graph.MeasureString(axisTitle.Replace("\\n", "\n"), this.TitleFont, new SizeF(10000f, 10000f), format, this.GetTextOrientation()); 2441axisTitle.Replace("\\n", "\n"), 3394SizeF titleStringSize = chartGraph.MeasureStringRel(this.Title.Replace("\\n", "\n"), this.TitleFont, new SizeF(10000f, 10000f), StringFormat.GenericTypographic, this.GetTextOrientation()); 4857axis.Title.Replace("\\n", "\n"), 5313SizeF axisLabelSize = chartGraph.MeasureStringRel(label.Text.Replace("\\n", "\n"), autoLabelFont); 5464label.Text.Replace("\\n", "\n") + "W", 5478label.Text.Replace("\\n", "\n"), 5701SizeF axisLabelSize = chartGraph.MeasureStringRel(label.Text.Replace("\\n", "\n"), 5712axisLabelSize = chartGraph.MeasureStringRel(label.Text.Replace("\\n", "\n"), 5938SizeF axisLabelSize = chartGraph.MeasureStringRel(label.Text.Replace("\\n", "\n"), (autoLabelFont != null) ? autoLabelFont : this.LabelStyle.Font);
Common\General\Chart.cs (4)
788 yFieldNames = series.YValueMembers.Replace(",,", "\n").Split(','); 791 yFieldNames[index] = yFieldNames[index].Replace("\n", ",").Trim(); 1126 yFieldNames = yFields.Replace(",,", "\n").Split(','); 1129 yFieldNames[index] = yFieldNames[index].Replace("\n", ",");
Common\General\ChartArea.cs (1)
2690 axis.Title.Replace("\\n", "\n"),
Common\General\ChartAreaAxes.cs (1)
1489seriesNamesStr = seriesNamesStr + seriesName.Replace(",", "\\,") + ",";
Common\General\ChartGraphics.cs (5)
1983labelSize = this.MeasureString(text.Replace("\\n", "\n"), font, absPosition.Size, drawingFormat); 2154text.Replace("\\n", "\n"), 2234this.DrawString(text.Replace("\\n", "\n"), font, brush, 2241this.DrawString(text.Replace("\\n", "\n"), font, brush, 2282text.Replace("\\n", "\n"),
Common\General\DataManipulator.cs (4)
322 series = series.Replace("\\,", "\\x45"); 323 series = series.Replace("\\=", "\\x46"); 335 string seriesName = s.Replace("\\x45", ","); 336 seriesName = seriesName.Replace("\\x46", "=");
Common\General\ImageMap.cs (2)
422string checkValue = value.Trim().Replace("\r", String.Empty).Replace("\n", String.Empty);
Common\General\Label.cs (2)
1261circAxis.Title.Replace("\\n", "\n"), 1271SizeF size = graph.MeasureString(circAxis.Title.Replace("\\n", "\n"), (_axis.autoLabelFont == null) ? _font : _axis.autoLabelFont);
Common\General\Legend.cs (5)
2213 cell.Text = cell.Text.Replace(KeywordName.LegendText, item.Name); 2262 cell.Text = cell.Text.Replace(KeywordName.LegendText, item.Name); 3981 this.Title.Replace("\\n", "\n"), 4010 legendColumn.HeaderText.Replace("\\n", "\n") + "I", 4324 this.Title.Replace("\\n", "\n"),
Common\General\LegendColumns.cs (3)
1808 string resultString = this.Text.Replace("\\n", "\n"); 1813 resultString = resultString.Replace(KeywordName.LegendText, this.LegendItem.Name); 1817 resultString = resultString.Replace(KeywordName.LegendText, "");
Common\General\StripLine.cs (2)
695SizeF size = graph.MeasureStringRel(titleText.Replace("\\n", "\n"), this.Font, new SizeF(100, 100), format, this.GetTextOrientation()); 798titleText.Replace("\\n", "\n"),
Common\General\Title.cs (4)
1382 "W" + titleText.Replace("\\n", "\n"), 1475"W" + titleText.Replace("\\n", "\n"), 1629titleText = titleText.Replace("\\n", "\n"); 1872"W" + this.Text.Replace("\\n", "\n"),
Common\Utilities\ImageLoader.cs (1)
202string imageFile = path.Replace(pageFile, imageFileRelative);
System.Workflow.Activities (4)
Rules\Design\Dialogs\RuleConditionDialog.cs (2)
90this.conditionTextBox.Text = ruleExpressionCondition.ToString().Replace("\n", "\r\n"); 133this.conditionTextBox.Text = this.ruleExpressionCondition.ToString().Replace("\n", "\r\n");
Rules\Design\Dialogs\RuleSetDialog.cs (2)
161this.conditionTextBox.Text = rule.Condition != null ? rule.Condition.ToString().Replace("\n", "\r\n") : string.Empty; 234this.conditionTextBox.Text = ruleCondition.ToString().Replace("\n", "\r\n");
System.Workflow.ComponentModel (31)
AuthoringOM\Behaviors\SynchronizationScope.cs (2)
125stringifiedValue += handle.Replace(",", "\\,"); 134stringifiedValue = stringifiedValue.Replace("\\,", ">");
AuthoringOM\Compiler\Configuration.cs (12)
148string outputString = inputString.Replace(@"\", @"\\"); 149outputString = outputString.Replace("[", @"\["); 150outputString = outputString.Replace("^", @"\^"); 151outputString = outputString.Replace("$", @"\$"); 152outputString = outputString.Replace("|", @"\|"); 153outputString = outputString.Replace("+", @"\+"); 154outputString = outputString.Replace("(", @"\("); 155outputString = outputString.Replace(")", @"\)"); 156outputString = outputString.Replace(".", @"\x2E"); 158outputString = outputString.Replace("*", @"[\w\x60\x2E]{0,}"); 159outputString = outputString.Replace("?", @"\w{1,1}"); 162outputString = outputString.Replace(" ", @"\s{0,}");
AuthoringOM\Compiler\XomlCompilerParameters.cs (4)
189return path.Replace(runtimeManager.NetFxRuntimeRoot, RuntimeReferencePrefix); 194return path.Replace(refManager.FrameworkReferenceAssemblyRoot, FrameworkReferencePrefix); 206return path.Replace(RuntimeReferencePrefix, runtimeManager.NetFxRuntimeRoot); 211return path.Replace(FrameworkReferencePrefix, refManager.FrameworkReferenceAssemblyRoot);
AuthoringOM\Design\DesignerHelpers.cs (2)
1607name = name.Replace(" ", ""); 1713baseIdentifier = baseIdentifier.Replace(" ", "");
AuthoringOM\Design\DesignerWidgets.cs (1)
1270descriptionString = descriptionString.Replace("&", "");
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
456if (!extension.Equals(WorkflowTheme.DefaultThemeFileExtension.Replace("*", ""), StringComparison.Ordinal))
AuthoringOM\Design\Themes.cs (2)
155internal static string DefaultNamespace = typeof(WorkflowTheme).Namespace.Replace(".", "_"); 357if (extension.Equals(WorkflowTheme.DefaultThemeFileExtension.Replace("*", ""), StringComparison.Ordinal))
AuthoringOM\Design\WorkflowPrinting.cs (7)
245headerFooter = headerFooter.Replace("{#}", headerFooterPrintData.CurrentPage.ToString(CultureInfo.CurrentCulture)); 246headerFooter = headerFooter.Replace("{##}", headerFooterPrintData.TotalPages.ToString(CultureInfo.CurrentCulture)); 247headerFooter = headerFooter.Replace("{Date}", headerFooterPrintData.PrintTime.ToShortDateString()); 248headerFooter = headerFooter.Replace("{Time}", headerFooterPrintData.PrintTime.ToShortTimeString()); 249headerFooter = headerFooter.Replace("{FullFileName}", headerFooterPrintData.FileName); 250headerFooter = headerFooter.Replace("{FileName}", Path.GetFileName(headerFooterPrintData.FileName)); 251headerFooter = headerFooter.Replace("{User}", SystemInformation.UserName);
System.Workflow.Runtime (1)
Tracking\SqlTrackingService.cs (1)
2497return val.Replace("'", "''");
System.Xml (9)
System\Xml\Serialization\SoapReflectionImporter.cs (2)
692string strValue = Enum.Format(a.SoapDefaultValue.GetType(), a.SoapDefaultValue, "G").Replace(",", " "); 721typeName = typeName.Replace(argument, XsdTypeName(types[i]));
System\Xml\Serialization\XmlReflectionImporter.cs (2)
856typeName = typeName.Replace(argument, XsdTypeName(types[i])); 1867string strValue = Enum.Format(t, a.XmlDefaultValue, "G").Replace(",", " ");
System\Xml\Serialization\XmlSerializationWriterILGen.cs (5)
1476string arrayNamePlusA = (arrayName).Replace(arrayTypeDesc.Name, "") + "a" + arrayElementTypeDesc.Name; 1477string arrayNamePlusI = (arrayName).Replace(arrayTypeDesc.Name, "") + "i" + arrayElementTypeDesc.Name; 1498string iPlusArrayName = "i" + (arrayName).Replace(arrayTypeDesc.Name, ""); 1499string arrayNamePlusA = (arrayName).Replace(arrayTypeDesc.Name, "") + "a" + arrayElementTypeDesc.Name; 1500string arrayNamePlusI = (arrayName).Replace(arrayTypeDesc.Name, "") + "i" + arrayElementTypeDesc.Name;
WindowsBase (3)
Base\MS\Internal\AssemblyHelper.cs (1)
219string extensionAssemblyName = assemblyName.Replace("WindowsBase", "PresentationFramework-" + name)
Base\System\IO\Packaging\PackUriHelper.cs (1)
764path = path.Replace(characterString, Uri.HexEscape(c));
Shared\MS\Internal\ResourceIDHelper.cs (1)
25Uri srcUri = new Uri(baseUri, relPath.Replace("#", "%23"));