示例#1
0
文件: OclBag.cs 项目: mff-uk/exolutio
        public OclBag flattenToBag()
        {
            List <OclAny> list = new List <OclAny>();

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

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