14 references to MaxCharacterTokenSize
System.Text.Json (14)
System\Text\Json\ThrowHelper.cs (6)
162Debug.Assert(value.Length > JsonConstants.MaxCharacterTokenSize); 170if (propertyName.Length > JsonConstants.MaxCharacterTokenSize) 184if (propertyName.Length > JsonConstants.MaxCharacterTokenSize) 190Debug.Assert(value.Length > JsonConstants.MaxCharacterTokenSize); 205Debug.Assert(propertyName.Length > JsonConstants.MaxCharacterTokenSize); 258Debug.Assert(propertyName.Length > JsonConstants.MaxCharacterTokenSize);
System\Text\Json\Writer\JsonWriterHelper.cs (7)
99if (propertyName.Length > JsonConstants.MaxCharacterTokenSize) 106if (value.Length > JsonConstants.MaxCharacterTokenSize) 113if (propertyName.Length > JsonConstants.MaxCharacterTokenSize || value.Length > JsonConstants.MaxUnescapedTokenSize) 120if (propertyName.Length > JsonConstants.MaxUnescapedTokenSize || value.Length > JsonConstants.MaxCharacterTokenSize) 134if (propertyName.Length > JsonConstants.MaxCharacterTokenSize || value.Length > JsonConstants.MaxCharacterTokenSize) 141if (propertyName.Length > JsonConstants.MaxCharacterTokenSize)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (1)
17if (propertyName.Length > JsonConstants.MaxCharacterTokenSize || CurrentDepth >= _options.MaxDepth)