Beispiel #1
0
        internal static IDictionary <string, object> GetDictionary(IntPtr m)
        {
            bool flag = m == IntPtr.Zero;
            IDictionary <string, object> result;

            if (flag)
            {
                result = null;
            }
            else
            {
                IDictionary <string, object>     dictionary   = new Dictionary <string, object>();
                RemoteConfigSettingsHelper.Tag[] safeMapTypes = RemoteConfigSettingsHelper.GetSafeMapTypes(m);
                string[] safeMapKeys = RemoteConfigSettingsHelper.GetSafeMapKeys(m);
                for (int i = 0; i < safeMapKeys.Length; i++)
                {
                    RemoteConfigSettingsHelper.SetDictKeyType(m, dictionary, safeMapKeys[i], safeMapTypes[i]);
                }
                result = dictionary;
            }
            return(result);
        }