Left, Right, SubString C#
https://kodify.net/csharp/strings/left-right-mid/#left-right-and-mid-string-segments-in-c
Feature Description
C# equivalent
Left
Get specific number of characters (count
) from left part
string.Substring(0, count)
Right Get specific number of characters (count
) from right side string.Substring(string.Length
- count, count)
Mid Get a specific number of characters (count
) starting at a certain point (index
) string.Substring(index, count)
Mid Get all characters starting at a certain point (index
) string.Substring(index)
Comments
Post a Comment