-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The Substring entity currently requires two parameters in its constructor: start and length.
It would be useful to add an additional constructor that accepts only the length parameter, while the start parameter defaults to 0.
Proposed change:
-
Add a new constructor to
Substringwith the following signature:Substring(INumber<ushort> length)
-
Internally, this constructor should call the main constructor with
start = 0and the providedlength.
Benefits:
- Simplifies creation of substrings when the starting index is always
0. - Improves code readability and reduces boilerplate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request