What is the Fastest way to remove first char in a String ?

What is the Fastest way to remove first char in a String ?

Asked on October 26, 2018 in String.
Add Comment


  • 2 Answer(s)

       For the lead position, Remove and Substring should tie, since they both guzzle up a settled size part of the string, though TrimStart finish a sweep from the left with a test on each character and afterward needs to perform the very same work as the other two strategies.

    Answered on October 26, 2018.
    Add Comment

    Compose a circle of numerous emphasess. Odds are, not with standing, this isn’t the bottleneck in our application, and TrimStart appears the most semantically right. Endeavor to compose code comprehensibly before enhancing.

    Answered on October 26, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.