Here are the examples of the csharp api string.ReplaceSpecialChars() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : Helper.cs
with MIT License
from LayTec-AG
with MIT License
from LayTec-AG
public static string ToDotNetFriendlyName(this string input, WordList dic, bool suppressUppercase = false)
{
if (string.IsNullOrWhiteSpace(input))
{
return "Empty";
}
return Regex.Replace(
input
.ToCamelCase(dic, suppressUppercase)
.Replace(">=", "GreaterThanOrEqual")
.Replace("<=", "LessThanOrEqual")
.Replace("!=", "NotEqual")
.ReplaceSpecialChars(),
"^(\\d+)", m => $"_{m.Value}");
}