Пример #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;
 }