Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Serializing passed object

$
0
0
Another possibility, if your function has access to the script engine, might be to use its JSON object:
publicvoid myUpdate(string collectionName, DynamicObject entity)
{
    var json = Convert.ToString(engine.Script.JSON.stringify(entity));
    // ...
}
Good luck!

Viewing all articles
Browse latest Browse all 2297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>