.net - What is the C# Equivalent of java's transient keyword? -
this question has answer here:
i'm using system.web.script.serialization.javascriptserializer serialize object json, there fields within object don't need serialized. in java mark them 'transient' keyword. there equivalent keyword or standard practice in c#?
put [scriptignore] attribute on property , not serialized.
Comments
Post a Comment