Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Create Dictionary or apply from dic #1

Closed
newbe36524 opened this issue Oct 26, 2020 · 1 comment
Closed

Create Dictionary or apply from dic #1

newbe36524 opened this issue Oct 26, 2020 · 1 comment

Comments

@newbe36524
Copy link
Owner

newbe36524 commented Oct 26, 2020

/**
 馃毀collect properties into a dictionary
*/

Dictionary<string,object> dic1 = o.V().CollectAsDictionary().Run();
// quick style for above
var dic1 = o.ToDictionary();

/**
 馃毀apply value from a dictionary to object
*/
o.V().ApplyFromDictionary().Run(dic);
// quick style for above
o.FromDictionary(dic);

refer code for impletmentation

https://github.com/newbe36524/Newbe.ObjectVisitor/blob/main/src/Newbe.ObjectVisitor/Newbe.ObjectVisitor/Util/FormatToStringExtensions.cs

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.99. Please mark this comment with 馃憤 or 馃憥 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

traceless0929 added a commit that referenced this issue Nov 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant