forked from FatturaElettronica/FatturaElettronica.NET
-
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.
Revert "Migrazione a System.Text.Json'"
- Loading branch information
1 parent
b41834d
commit 36727be
Showing
13 changed files
with
119 additions
and
161 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
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
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
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
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
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
using System.Text; | ||
using System.Text.Json; | ||
|
||
namespace FatturaElettronica.Extensions | ||
{ | ||
public static class JsonExtensions | ||
{ | ||
public static void FromJson(this FatturaBase fattura, string json) | ||
{ | ||
fattura.FromJson(new Utf8JsonReader(Encoding.UTF8.GetBytes(json))); | ||
} | ||
} | ||
using System.IO; | ||
using Newtonsoft.Json; | ||
|
||
namespace FatturaElettronica.Extensions | ||
{ | ||
public static class JsonExtensions | ||
{ | ||
public static void FromJson(this FatturaBase fattura, string json) | ||
{ | ||
fattura.FromJson(new JsonTextReader(new StringReader(json))); | ||
} | ||
} | ||
} |
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.