@@ -27,9 +27,6 @@ public sealed partial class JsonDocument : IDisposable
27
27
private byte [ ] _extraRentedBytes ;
28
28
private ( int , string ) _lastIndexAndString = ( - 1 , null ) ;
29
29
30
- /// <summary>
31
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
32
- /// </summary>
33
30
internal bool IsDisposable { get ; }
34
31
35
32
/// <summary>
@@ -77,19 +74,13 @@ public void Dispose()
77
74
}
78
75
}
79
76
80
- /// <summary>
81
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
82
- /// </summary>
83
77
internal JsonTokenType GetJsonTokenType ( int index )
84
78
{
85
79
CheckNotDisposed ( ) ;
86
80
87
81
return _parsedData . GetJsonTokenType ( index ) ;
88
82
}
89
83
90
- /// <summary>
91
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
92
- /// </summary>
93
84
internal int GetArrayLength ( int index )
94
85
{
95
86
CheckNotDisposed ( ) ;
@@ -101,9 +92,6 @@ internal int GetArrayLength(int index)
101
92
return row . SizeOrLength ;
102
93
}
103
94
104
- /// <summary>
105
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
106
- /// </summary>
107
95
internal JsonElement GetArrayIndexElement ( int currentIndex , int arrayIndex )
108
96
{
109
97
CheckNotDisposed ( ) ;
@@ -152,9 +140,6 @@ internal JsonElement GetArrayIndexElement(int currentIndex, int arrayIndex)
152
140
throw new IndexOutOfRangeException ( ) ;
153
141
}
154
142
155
- /// <summary>
156
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
157
- /// </summary>
158
143
internal int GetEndIndex ( int index , bool includeEndElement )
159
144
{
160
145
CheckNotDisposed ( ) ;
@@ -233,9 +218,6 @@ private ReadOnlyMemory<byte> GetPropertyRawValue(int valueIndex)
233
218
return _utf8Json . Slice ( start , end - start ) ;
234
219
}
235
220
236
- /// <summary>
237
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
238
- /// </summary>
239
221
internal string GetString ( int index , JsonTokenType expectedType )
240
222
{
241
223
CheckNotDisposed ( ) ;
@@ -275,18 +257,12 @@ internal string GetString(int index, JsonTokenType expectedType)
275
257
return lastString ;
276
258
}
277
259
278
- /// <summary>
279
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
280
- /// </summary>
281
260
internal string GetNameOfPropertyValue ( int index )
282
261
{
283
262
// The property name is one row before the property value
284
263
return GetString ( index - DbRow . Size , JsonTokenType . PropertyName ) ;
285
264
}
286
265
287
- /// <summary>
288
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
289
- /// </summary>
290
266
internal bool TryGetValue ( int index , out int value )
291
267
{
292
268
CheckNotDisposed ( ) ;
@@ -309,9 +285,6 @@ internal bool TryGetValue(int index, out int value)
309
285
return false ;
310
286
}
311
287
312
- /// <summary>
313
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
314
- /// </summary>
315
288
internal bool TryGetValue ( int index , out uint value )
316
289
{
317
290
CheckNotDisposed ( ) ;
@@ -334,9 +307,6 @@ internal bool TryGetValue(int index, out uint value)
334
307
return false ;
335
308
}
336
309
337
- /// <summary>
338
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
339
- /// </summary>
340
310
internal bool TryGetValue ( int index , out long value )
341
311
{
342
312
CheckNotDisposed ( ) ;
@@ -359,9 +329,6 @@ internal bool TryGetValue(int index, out long value)
359
329
return false ;
360
330
}
361
331
362
- /// <summary>
363
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
364
- /// </summary>
365
332
internal bool TryGetValue ( int index , out ulong value )
366
333
{
367
334
CheckNotDisposed ( ) ;
@@ -384,9 +351,6 @@ internal bool TryGetValue(int index, out ulong value)
384
351
return false ;
385
352
}
386
353
387
- /// <summary>
388
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
389
- /// </summary>
390
354
internal bool TryGetValue ( int index , out double value )
391
355
{
392
356
CheckNotDisposed ( ) ;
@@ -411,9 +375,6 @@ internal bool TryGetValue(int index, out double value)
411
375
return false ;
412
376
}
413
377
414
- /// <summary>
415
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
416
- /// </summary>
417
378
internal bool TryGetValue ( int index , out float value )
418
379
{
419
380
CheckNotDisposed ( ) ;
@@ -438,9 +399,6 @@ internal bool TryGetValue(int index, out float value)
438
399
return false ;
439
400
}
440
401
441
- /// <summary>
442
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
443
- /// </summary>
444
402
internal bool TryGetValue ( int index , out decimal value )
445
403
{
446
404
CheckNotDisposed ( ) ;
@@ -465,9 +423,6 @@ internal bool TryGetValue(int index, out decimal value)
465
423
return false ;
466
424
}
467
425
468
- /// <summary>
469
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
470
- /// </summary>
471
426
internal bool TryGetValue ( int index , out DateTime value )
472
427
{
473
428
CheckNotDisposed ( ) ;
@@ -499,9 +454,6 @@ internal bool TryGetValue(int index, out DateTime value)
499
454
&& segment . Length == bytesConsumed ;
500
455
}
501
456
502
- /// <summary>
503
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
504
- /// </summary>
505
457
internal bool TryGetValue ( int index , out DateTimeOffset value )
506
458
{
507
459
CheckNotDisposed ( ) ;
@@ -533,9 +485,6 @@ internal bool TryGetValue(int index, out DateTimeOffset value)
533
485
&& segment . Length == bytesConsumed ;
534
486
}
535
487
536
- /// <summary>
537
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
538
- /// </summary>
539
488
internal bool TryGetValue ( int index , out Guid value )
540
489
{
541
490
CheckNotDisposed ( ) ;
@@ -565,27 +514,18 @@ internal bool TryGetValue(int index, out Guid value)
565
514
return ( segment . Length == JsonConstants . MaximumFormatGuidLength ) && Utf8Parser . TryParse ( segment , out value , out _ , 'D' ) ;
566
515
}
567
516
568
- /// <summary>
569
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
570
- /// </summary>
571
517
internal string GetRawValueAsString ( int index )
572
518
{
573
519
ReadOnlyMemory < byte > segment = GetRawValue ( index , includeQuotes : true ) ;
574
520
return JsonReaderHelper . TranscodeHelper ( segment . Span ) ;
575
521
}
576
522
577
- /// <summary>
578
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
579
- /// </summary>
580
523
internal string GetPropertyRawValueAsString ( int valueIndex )
581
524
{
582
525
ReadOnlyMemory < byte > segment = GetPropertyRawValue ( valueIndex ) ;
583
526
return JsonReaderHelper . TranscodeHelper ( segment . Span ) ;
584
527
}
585
528
586
- /// <summary>
587
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
588
- /// </summary>
589
529
internal JsonElement CloneElement ( int index )
590
530
{
591
531
int endIndex = GetEndIndex ( index , true ) ;
@@ -598,9 +538,6 @@ internal JsonElement CloneElement(int index)
598
538
return newDocument . RootElement ;
599
539
}
600
540
601
- /// <summary>
602
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
603
- /// </summary>
604
541
internal void WriteElementTo (
605
542
int index ,
606
543
Utf8JsonWriter writer ,
@@ -642,9 +579,6 @@ internal void WriteElementTo(
642
579
Debug . Fail ( $ "Unexpected encounter with JsonTokenType { row . TokenType } ") ;
643
580
}
644
581
645
- /// <summary>
646
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
647
- /// </summary>
648
582
internal void WriteElementTo (
649
583
int index ,
650
584
Utf8JsonWriter writer ,
@@ -686,9 +620,6 @@ internal void WriteElementTo(
686
620
Debug . Fail ( $ "Unexpected encounter with JsonTokenType { row . TokenType } ") ;
687
621
}
688
622
689
- /// <summary>
690
- /// This is an implementation detail and MUST NOT be called by source-package consumers.
691
- /// </summary>
692
623
internal void WriteElementTo (
693
624
int index ,
694
625
Utf8JsonWriter writer )
0 commit comments