Exemple #1
0
        public void TestUnicodeSet()
        {
            string[]      array = new string[] { "a", "b", "c", "{de}" };
            List <string> list  = array.ToList();
            ISet <string> aset  = new HashSet <string>(list);

            Logln(" *** The source set's size is: " + aset.Count);
            //The size reads 4
            UnicodeSet set = new UnicodeSet();

            set.Clear();
            set.AddAll(aset);
            Logln(" *** After addAll, the UnicodeSet size is: " + set.Count);
            //The size should also read 4, but 0 is seen instead
        }
        public void TestUnicodeSet()
        {
            String[] array = new String[] { "a", "b", "c", "{de}" };
            IList    list  = ILOG.J2CsMapping.Collections.Arrays.AsList(array);

            ILOG.J2CsMapping.Collections.ISet aset = new HashedSet(list);
            Logln(" *** The source set's size is: " + aset.Count);
            // The size reads 4
            UnicodeSet set = new UnicodeSet();

            set.Clear();
            set.AddAll(aset);
            Logln(" *** After addAll, the UnicodeSet size is: " + set.Size());
            // The size should also read 4, but 0 is seen instead
        }