Exemplo n.º 1
0
        protected override Delegate GetGetterCore(IChannel ch, DataViewRow 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[col].Type;

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