예제 #1
0
        public WhereCollectionExpression(ICollectionExpression <T> source, Expression <Func <T, bool> > predicate, Func <T, bool> predicateCompiled, Action <T, bool> predicateReversed)
            : base(source, predicate, predicateCompiled)
        {
            if (predicateCompiled == null)
            {
                var predicateReverseExpression = SetExpressionRewriter.CreateSetter(predicate);
                if (predicateReverseExpression != null)
                {
                    predicateReversed = predicateReverseExpression.Compile();
                }
            }

            PredicateSetter = predicateReversed;
        }
예제 #2
0
 public OfTypeCollectionExpression(ICollectionExpression <TSource> source) : base(source)
 {
     casted = source;
 }
예제 #3
0
 public State()
 {
     Transitions = new StateTransitionCollection(this);
 }
예제 #4
0
 public Place()
 {
     Incoming = new PlaceIncomingCollection(this);
     Outgoing = new PlaceOutgoingCollection(this);
 }
 public TipCollection(ICollectionExpression <ITipLiquidTransfer> originalCollection)
     : base(originalCollection)
 {
     _originalCollection = originalCollection;
 }