IsInternalKey() static private method

static private IsInternalKey ( string key, string internalKeys ) : bool
key string
internalKeys string
return bool
        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);
        }