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

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -