Skip to content

Commit 3f19b64

Browse files
committed
make improvements of the data reader
1 parent ecffe92 commit 3f19b64

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Data/DataFrame/IO/DataFrame/HeaderSchema.vb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ Namespace IO
205205
.SeqIterator _
206206
.ToDictionary(Function(i) i.value,
207207
Function(i)
208+
' 0-based ordinal offset
208209
Return i.i
209210
End Function)
210211
End Function

Microsoft.VisualBasic.Core/src/Extensions/Collection/Linq/SeqValue.vb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,21 @@ Namespace Linq
122122
Return $"[{i}] {Me.value.GetJson(False)}"
123123
End Function
124124

125+
''' <summary>
126+
''' get value from the indexed object
127+
''' </summary>
128+
''' <param name="x"></param>
129+
''' <returns></returns>
125130
<MethodImpl(MethodImplOptions.AggressiveInlining)>
126131
Public Shared Narrowing Operator CType(x As SeqValue(Of T)) As T
127132
Return x.value
128133
End Operator
129134

135+
''' <summary>
136+
''' get ordinal index offset from the given indexed object.
137+
''' </summary>
138+
''' <param name="x"></param>
139+
''' <returns></returns>
130140
<MethodImpl(MethodImplOptions.AggressiveInlining)>
131141
Public Shared Narrowing Operator CType(x As SeqValue(Of T)) As Integer
132142
Return x.i

0 commit comments

Comments
 (0)