コード例 #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
ファイル: OclSequence.cs プロジェクト: mff-uk/exolutio
        public OclSequence flattenToSequence()
        {
            OclSequence seq = new OclSequence(OclCollectionType.BasicElementType(elementType));

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