Program.cs 461 Bytes
Newer Older
Uwe Wienkop's avatar
Uwe Wienkop committed
1 2 3 4 5 6 7 8 9 10
using System;
using System.Collections.Generic;

namespace _08_UebgDiDatentypSet
{
    
    class Program
    {
        static void Main(string[] args)
        {
Uwe Wienkop's avatar
Uwe Wienkop committed
11
            ListSet<char> cs1 = new ListSet<char>('A','C','E');
Uwe Wienkop's avatar
Uwe Wienkop committed
12
            //cs1.Add('D', 'H');
Uwe Wienkop's avatar
Uwe Wienkop committed
13 14

            ListSet<char> cs2 = new ListSet<char>('A', 'C', 'X', 'Y');
Uwe Wienkop's avatar
Uwe Wienkop committed
15 16
            //  A    C     E
            //    B  C  D
Uwe Wienkop's avatar
Uwe Wienkop committed
17 18 19

            ListSet<char> cs3 = cs1.Intersect(cs2);

Uwe Wienkop's avatar
Uwe Wienkop committed
20 21 22
        }
    }
}