Skip to content

Commit

Permalink
Merge pull request #1211 from microsoft/jandupej/net90-fix
Browse files Browse the repository at this point in the history
Fix compatibility with .NET 9 Preview
  • Loading branch information
jandupej authored Oct 2, 2024
2 parents c0fdc49 + d306ca1 commit 4e3a21f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 4e3a21f

Please sign in to comment.