コード例 #1
0
        protected override Delegate GetGetterCore(IChannel ch, IRow input, int iinfo, out Action disposer)
        {
            Contracts.AssertValueOrNull(ch);
            Contracts.AssertValue(input);
            Contracts.Assert(0 <= iinfo && iinfo < Infos.Length);

            disposer = null;
            int col     = Infos[iinfo].Source;
            var typeSrc = input.Schema.GetColumnType(col);

            Contracts.Assert(RowCursorUtils.TestGetLabelGetter(typeSrc) == null);
            return(RowCursorUtils.GetLabelGetter(input, col));
        }