Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ====== current
- public void Renumber(int startNumber = 1)
- {
- var number = startNumber;
- int l = Paragraphs.Count + number;
- while (number < l)
- {
- var p = Paragraphs[number - startNumber];
- p.Number = number++;
- }
- }
- ====== ai generated
- public void Renumber(int startNumber = 1)
- {
- var totalParagraphs = Paragraphs.Count + startNumber;
- for (int i = 0; startNumber < totalParagraphs; i++, startNumber++)
- {
- var paragraph = Paragraphs[i];
- paragraph.Number = startNumber;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement