Created
March 13, 2023 11:01
-
-
Save renatogroffe/b7fdedb902724f971c469bc30c17fe03 to your computer and use it in GitHub Desktop.
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
using System.Text.Json.Serialization; | |
namespace ConsoleAppJsonUnmapped.Models; | |
[JsonUnmappedMemberHandling(JsonUnmappedMemberHandling.Disallow)] | |
public class Pessoa | |
{ | |
public string? Nome { get; set; } | |
public int Idade { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment