Skip to content

Slice Method ​

Definition ​

  • Namespace: JASE.Extensions
  • Assembly: JASE.Primitives.dll

string Slice(string source, int start, int end) ​

csharp
string Slice(string source, int start, int end)

Get the string slice between the two indexes. Inclusive for start index, exclusive for end index. Mimics the JavaScrip implementation