.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.

see: scriptignoreattribute class


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -