Class StringReplace
String replace helper
Inheritance
System.Object
StringReplace
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.Text
Assembly: Simplic.CoreLib.dll
Syntax
public static class StringReplace
Methods
| Improve this Doc View SourceReplaceFirst(String, String, String)
Replace first word in text
Declaration
public static string ReplaceFirst(this string text, string search, string replace)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Text to search in |
System.String | search | Text to search |
System.String | replace | Replace string |
Returns
Type | Description |
---|---|
System.String | Input text with first replaced char if exists |