Exemple #1
0
            public override ValueGetter <TValue> GetGetter <TValue>(int col)
            {
                int dv;
                int srcCol;

                _zipBinding.GetColumnSource(col, out dv, out srcCol);
                return(_cursors[dv].GetGetter <TValue>(srcCol));
            }
            /// <summary>
            /// Returns a value getter delegate to fetch the value of column with the given columnIndex, from the row.
            /// This throws if the column is not active in this row, or if the type
            /// <typeparamref name="TValue"/> differs from this column's type.
            /// </summary>
            /// <typeparam name="TValue"> is the column's content type.</typeparam>
            /// <param name="column"> is the output column whose getter should be returned.</param>
            public override ValueGetter <TValue> GetGetter <TValue>(DataViewSchema.Column column)
            {
                int dv;
                int srcCol;

                _zipBinding.GetColumnSource(column.Index, out dv, out srcCol);
                var rowCursor = _cursors[dv];

                return(rowCursor.GetGetter <TValue>(rowCursor.Schema[srcCol]));
            }