예제 #1
0
        public static ArrayHandle <TKeyHandle, TValueHandle> Store <TKeyHandle, TValueHandle>(
            ArrayHandle <TKeyHandle, TValueHandle> array,
            TKeyHandle key,
            TValueHandle value)
            where TKeyHandle : struct, IHandle
            where TValueHandle : struct, IHandle
        {
            var expression = ExpressionFactory.Store(array.Expression, key.Expression, value.Expression);

            return((ArrayHandle <TKeyHandle, TValueHandle>)expression);
        }
예제 #2
0
        public static TValueHandle Select <TKeyHandle, TValueHandle>(
            ArrayHandle <TKeyHandle, TValueHandle> array,
            TKeyHandle key)
            where TKeyHandle : struct, IHandle
            where TValueHandle : struct, IHandle
        {
            var expression = ExpressionFactory.Select(array.Expression, key.Expression);

            return(new TValueHandle()
            {
                Expression = expression
            });
        }