// // Copyright (c) ZeroC, Inc. All rights reserved. // namespace Ice { using System; using System.Collections; using System.Collections.Generic; using System.Reflection; public sealed class SliceChecksums { public static Dictionary checksums = new Dictionary(); static SliceChecksums() { Type[] types = IceInternal.AssemblyUtil.findTypesWithPrefix("IceInternal.SliceChecksums"); foreach(Type t in types) { FieldInfo f = t.GetField("map", BindingFlags.Public | BindingFlags.Static); Hashtable map = (Hashtable)f.GetValue(null); foreach(DictionaryEntry entry in map) { checksums.Add((string)entry.Key, (string)entry.Value); } } } } }