StringExtensionsReplace(String, Char) Method
Replace specified characters with an empty string.
Namespace: PCBI_CadanceFab_ImportAssembly: PCBI_CadanceFab_Import (in PCBI_CadanceFab_Import.dll) Version: 17.0.0.0 (17.0.0.0)
public static string Replace(
this string s,
params char[] chars
)
<ExtensionAttribute>
Public Shared Function Replace (
s As String,
ParamArray chars As Char()
) As String
public:
[ExtensionAttribute]
static String^ Replace(
String^ s,
... array<wchar_t>^ chars
)
[<ExtensionAttribute>]
static member Replace :
s : string *
chars : char[] -> string
- s String
- the string
- chars Char
- list of characters to replace from the string
StringSystem.stringIn Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
string s = "Friends";
s = s.Replace('F', 'r','i','s'); //s becomes 'end;