Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compatibility with .NET 9 Preview #1211

Merged
merged 3 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ different versioning scheme, following the Haskell community's

### C# ###

* There were no C# changes in this release.
* Fixed compatibility with .NET 9.

## 13.0 ##

Expand Down
2 changes: 1 addition & 1 deletion cs/src/core/expressions/DeserializerTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ Expression Container(IParser parser, Expression container, Type schemaType, bool
else
{
var capacity = container.Type.GetDeclaredProperty("Capacity", count.Type);
if (capacity != null)
if (capacity != null && capacity.CanWrite)
{
var cappedCount = Expression.Variable(typeof(int), container + "_count");
beforeLoop = ApplyCountCap(
Expand Down
Loading