4 references to maxBytesPerChar
System.Private.DataContractSerialization (4)
System\Xml\XmlCanonicalWriter.cs (4)
364
throw new ArgumentOutOfRangeException(nameof(ns), SR.Format(SR.CombinedPrefixNSLength, int.MaxValue /
maxBytesPerChar
));
366
if (totalLength > int.MaxValue /
maxBytesPerChar
)
367
throw new ArgumentOutOfRangeException(nameof(ns), SR.Format(SR.CombinedPrefixNSLength, int.MaxValue /
maxBytesPerChar
));
368
EnsureXmlnsBuffer(totalLength *
maxBytesPerChar
);