internal static void EnsureTypeNotGeneric(Type type) { if (type.ContainsGenericParameters) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.Format(SR.GenericTypeNotExportable, type))); }