Пример #1
0
        public HoldingSingle(P p)
        {
            parent = p;

            SetCanAddPredicate(HoldingContainerExtensions_Predicate.CanAdd <P, T>(this));
            SetCanRemovePredicate(HoldingContainerExtensions_Predicate.CanRemove <P, T>(this));
        }
Пример #2
0
        public HoldingLabeledItemSet(P p)
        {
            parent = p;

            SetCanAddPredicate(HoldingContainerExtensions_Predicate.CanAdd <P, ELEMENT_TYPE>(this));
            SetCanRemovePredicate(HoldingContainerExtensions_Predicate.CanRemove <P, ELEMENT_TYPE>(this));
        }