Exemplo n.º 1
0
        public void HasValue <TValue>(Func <TEntity, TValue> converter)
        {
            var native = this.converter.Get <TValue>();

            TreeEncoderDescriptor <TState, TNative, TEntity> .BindValue(this.definition, e => native(converter(e)));

            this.definition.Callback = (reader, state, entity) => reader.WriteAsValue(state, native(converter(entity)));
        }
Exemplo n.º 2
0
        public void HasValue()
        {
            var converter = this.converter.Get <TEntity>();

            TreeEncoderDescriptor <TState, TNative, TEntity> .BindValue(this.definition, converter);
        }