forked from OrchardCMS/OrchardCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds more features back that were lost due to the removal of Newtonso…
…ft (OrchardCMS#16292) --------- Co-authored-by: Sébastien Ros <sebastienros@gmail.com> Co-authored-by: Mike Alhayek <mike@crestapps.com> Co-authored-by: Hisham Bin Ateya <hishamco_2007@yahoo.com>
- Loading branch information
1 parent
906f5a9
commit 51eb7b8
Showing
6 changed files
with
1,002 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/OrchardCore/OrchardCore.Abstractions/Json/Dynamic/JsonDynamicBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Dynamic; | ||
using System.Text.Json.Nodes; | ||
|
||
#nullable enable | ||
|
||
namespace System.Text.Json.Dynamic; | ||
|
||
public abstract class JsonDynamicBase : DynamicObject | ||
{ | ||
public abstract JsonNode? Node { get; } | ||
|
||
public T? ToObject<T>() => Node.ToObject<T>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.