-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Lines 58 to 62 in b483aee
| public override void ResetLastError() | |
| { | |
| base.LastError.Remove(0, LastError.Length); | |
| LastException = null; | |
| } |
Lines 49 to 53 in b483aee
| public override void ResetLastError() | |
| { | |
| LastError.Remove(0, LastError.Length); | |
| LastException = null; | |
| } |
String is immutable. When you delete the LastError field, it is not deleted, but a new line is created in which there are no characters, that is, an empty string. To fix this, you must return the result of the Remove method in the LastError field.
LastError = LastError.Remove(0, LastError.Length - 1);
JadynWong
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working