Skip to content

Commit 78458bd

Browse files
author
Mario Brizic
committed
Add JsonIgnored property to test app to ensure it's working
1 parent 8d0065b commit 78458bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/WebApiTestApplication/Controllers/TestController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ public class AnotherClass
6868
public int Number { get; set; }
6969
public string Name { get; set; }
7070
public string[] List { get; set; }
71+
[JsonIgnore]
72+
public string JsonIgnoredProperty { get; set; }
7173
}
7274

7375
public class DerivedClassWithShadowedProperty : AnotherClass

0 commit comments

Comments
 (0)