4 references to maxBytesPerChar
System.Runtime.Serialization (4)
System\Xml\XmlC14NWriter.cs (4)
380
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("ns", SR.GetString(SR.CombinedPrefixNSLength, int.MaxValue /
maxBytesPerChar
)));
382
if (totalLength > int.MaxValue /
maxBytesPerChar
)
383
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("ns", SR.GetString(SR.CombinedPrefixNSLength, int.MaxValue /
maxBytesPerChar
)));
384
EnsureXmlnsBuffer(totalLength *
maxBytesPerChar
);