Ejemplo n.º 1
0
        Location <T> GetLocation(KeyNode <K> node, bool provision)
        {
            var result = new Location <T>
            {
                Offset = node.Offset,
                Length = node.Length
            };

            if (provision)
            {
                result.Result = _table.Ctor();

                if (_setter != null)
                {
                    _setter(result.Result, node.Key);
                }
            }

            return(result);
        }