Пример #1
0
        internal static Func <int, int> GetShardLocator(this ShardedVertexInfo vertexInfo)
        {
            var expr       = SerializationHelper.Deserialize(vertexInfo.ShardLocator);
            var actionExpr = (Expression <Func <int, int> >)expr;

            return(actionExpr.Compile());
        }
Пример #2
0
        internal static Expression <Func <int, int> > GetShardLocatorExpr(this ShardedVertexInfo vertexInfo)
        {
            var expr = SerializationHelper.Deserialize(vertexInfo.ShardLocator);

            return((Expression <Func <int, int> >)expr);
        }