79651799

Date: 2025-06-03 19:18:17
Score: 2.5
Natty:
Report link

can't you just use substring, or create an extension method?

https://dotnetfiddle.net/RlDOuh

public static class StringExtensions
{
    public static string Slice(this string source, int start, int end) => source.Substring(start, end - start);
    
}
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): can't you
  • High reputation (-1):
Posted by: Bryan Dellinger