486 references to Replace
Microsoft.Activities.Build (1)
mscorlib (12)
PresentationBuildTasks (1)
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)
System (16)
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.DurableInstancing (1)
System.Activities.Presentation (11)
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.ComponentModel.DataAnnotations (6)
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("&&", "&");
fx\src\data\System\Data\Common\DBDataPermission.cs (10)
245value = value.Replace(""", "\"");
246value = value.Replace("'", "\'");
247value = value.Replace("<", "<");
248value = value.Replace(">", ">");
249value = value.Replace("&", "&");
258value = value.Replace("&", "&");
259value = value.Replace(">", ">");
260value = value.Replace("<", "<");
261value = value.Replace("\'", "'");
262value = value.Replace("\"", """);
System.Data.Entity (18)
System.Data.Entity.Design (14)
System.Data.Services (1)
System.Data.Services.Client (1)
System.Data.Services.Design (3)
System.Data.SqlXml (1)
System.IdentityModel (3)
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)
System.Security (4)
System.ServiceModel (24)
System.ServiceModel.Activation (3)
System.ServiceModel.Activities (4)
System.ServiceModel.Internals (1)
System.Web (61)
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'/**/'",
System.Web.DataVisualization (90)
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\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\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"),
System.Web.DynamicData (1)
System.Web.Entity (1)
System.Web.Entity.Design (2)
System.Web.Extensions (1)
System.Web.Mobile (10)
System.Web.Services (1)
System.Windows.Forms (1)
System.Windows.Forms.DataVisualization (83)
System.Workflow.Activities (4)
System.Workflow.ComponentModel (31)
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,}");
System.Workflow.Runtime (1)
System.Xml (9)
WindowsBase (3)