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

Latest Images

Trending Articles





Latest Images