protected int GetArrayLengthQuota(XmlObjectSerializerReadContext context) { return Math.Min(context.RemainingItemCount, int.MaxValue); }