internal static void VerifyAttributes(IDictionary attributes, String[] supportedAttributes, object parent) {
foreach (string key in attributes.Keys) {
bool found = false;
if (supportedAttributes != null) {
for (int i=0; i<supportedAttributes.Length; i++) {
if (supportedAttributes[i] == key)
found = true;
}
}
if (!found)
throw new ConfigurationErrorsException(SR.GetString(SR.AttributeNotSupported, key, parent.GetType().FullName));
}
}