Archiv für Juli 2008

Doppelte Einträge in einer Liste entfernen

16 Juli 2008
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
private static List<t> RemoveDoubleItems</t><t>(List</t><t> list)
{
    List</t><t> newList = new List</t><t>();
    Dictionary</t><t , string> keyList = new Dictionary</t><t , string>();
 
    foreach (T item in list)
    {
        if (!keyList.ContainsKey(item))
        {
            keyList.Add(item, string.Empty);
            newList.Add(item);
        }
    }
 
    return newList;
}</t>

ReflectionTypeLoadException beim Installieren von MMC Snap-ins

16 Juli 2008

Die Installation eines MMC Snapins schlägt unter XP SP2 mit einer ReflectionTypeLoadException fehl.

InstallUtil.exe SimpleSnapin.dll

Abhilfe siehe http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2621568&SiteID=1