Esempio n. 1
0
        public OclBag flattenToBag()
        {
            List <OclAny> list = new List <OclAny>();

            FlattenToList(list, OclCollectionType.Depth(elementType));
            return(new OclBag(OclCollectionType.BasicElementType(elementType), list));
        }
Esempio n. 2
0
        public OclSequence flattenToSequence()
        {
            OclSequence seq = new OclSequence(OclCollectionType.BasicElementType(elementType));

            FlattenToList(seq.list, OclCollectionType.Depth(elementType));
            return(seq);
        }