Class StringExtensions
- Namespace
- OpenAI.Extensions
- Assembly
- AntRunnerLib.dll
Extension methods for string manipulation
public static class StringExtensions
- Inheritance
-
System.ObjectStringExtensions
- Inherited Members
-
System.Object.Equals(System.Object)System.Object.Equals(System.Object, System.Object)System.Object.GetHashCode()System.Object.GetType()System.Object.MemberwiseClone()System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ToString()
Methods
RemoveIfStartWith(String, String)
Remove the search string from the beginning of string if it exists
public static string RemoveIfStartWith(this string text, string search)
Parameters
textSystem.StringsearchSystem.String
Returns
- System.String