Alex Rivera | Logout

How to mark a property as non serializable for json?

Asked 2011-02-24T10:12:13.237
21

As the title says, I want to mark a property as non serializable by the JavascriptSerializer. How can achive that ? Thanks in advance.

Edit
Report

1 Answer

21

I think you just want to apply the ScriptIgnoreAttribute:

[ScriptIgnore]
public string IgnoreThis { get; set; }
answered 2011-02-24T10:18:07.080

Your Answer