Commit e645f63
authored
Fix generic type validation to support datetimes and non-ASCII strings. (#291)
* Throw `ArgumentException` on type mismatches.
* Fix and centralize generic type validation.
And also document which type is compatible with which `DataType`.
* Improve type checking for `FragmentInfo` methods when the type is string.
If the generic type is string, we check ourselves that the `DataType` is a string one. This ensures the exception thrown is `ArgumentException` instead of `TileDBException`.
The exception message also is more descriptive.
* Obsolete the converters between TileDB data types and .NET types.
* Use the correct obsoletion code in two cases.
The obsoletions in question have not yet shipped.
* Validate the data type in a couple more cases.
* Suppress obsoletion warning `TILEDB0013` in the `TileDB.CSharp` project.1 parent 7ca45f8 commit e645f63
File tree
18 files changed
+320
-89
lines changed- docs
- sources/TileDB.CSharp
- Interop
- Marshalling
- tests/TileDB.CSharp.Test
18 files changed
+320
-89
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
505 | 504 | | |
506 | 505 | | |
507 | 506 | | |
508 | 507 | | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
| 508 | + | |
513 | 509 | | |
514 | 510 | | |
515 | 511 | | |
| |||
531 | 527 | | |
532 | 528 | | |
533 | 529 | | |
534 | | - | |
535 | 530 | | |
536 | 531 | | |
537 | 532 | | |
538 | 533 | | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
| 534 | + | |
543 | 535 | | |
544 | 536 | | |
545 | 537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
0 commit comments