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