private static object[] GetExtraProperties(IDictionary properties, string[] internalKeys) { object[] array = new object[properties.Count - internalKeys.Length]; int num = 0; IDictionaryEnumerator enumerator = properties.GetEnumerator(); while (enumerator.MoveNext()) { if (!MessageFormatter.IsInternalKey((string)enumerator.Entry.Key, internalKeys)) { array[num++] = enumerator.Entry; } } return(array); }