You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Parsley.md
+197Lines changed: 197 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,4 +192,201 @@ public class NameType
192
192
```
193
193
Now parsing the file should hydrate data correctly to the Employee FileLine class and its nested name type.
194
194
195
+
## Parsley.Net v2.0.0 - Major Release Features
196
+
197
+
Parsley.Net v2.0.0 represents a comprehensive evolution of the library with enhanced functionality while maintaining complete backward compatibility. This major release introduces new configuration options, improved error handling, and better performance.
198
+
199
+
### 1. Enhanced Error Reporting with Line Numbers
200
+
201
+
The v2.0.0 release significantly improves error reporting by providing line numbers and field names in error messages:
202
+
203
+
```
204
+
public class EnhancedErrorExample : IFileLine
205
+
{
206
+
[Column(0)]
207
+
public string Code { get; set; }
208
+
209
+
[Column(1)]
210
+
public NameType Name { get; set; }
211
+
212
+
public int Index { get; set; }
213
+
public IList<string> Errors { get; set; }
214
+
}
215
+
216
+
// Usage - error messages now include line numbers and field details
217
+
var parser = new Parser('|');
218
+
var lines = new[] { "GB-01|Invalid Name Format", "XX-99|Another Invalid Entry" };
219
+
220
+
var result = parser.Parse<EnhancedErrorExample>(lines);
|[`v2.0.0`](https://github.com/CodeShayk/parsley.net/tree/v2.0.0)|[Notes](https://github.com/CodeShayk/Parsley.Net/releases/tag/v2.0.0) - MAJOR RELEASE: Comprehensive release with enhanced error reporting, improved performance, configuration options and result pattern|
0 commit comments