Last active
December 13, 2015 19:58
-
-
Save wullemsb/4966225 to your computer and use it in GitHub Desktop.
Exclude property from serialization, working solution
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
public class Product | |
{ | |
[XmlIgnore] | |
public int Id{get;set;} | |
[XmlIgnore] | |
public string Name{get;set;} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment