demidev_mb
demidev_mb
CC#
Created by SWEETPONY on 2/3/2023 in #help
❔ Is it worth to create lazy dictionary in this case?
If it's public use property
7 replies
CC#
Created by SWEETPONY on 2/3/2023 in #help
❔ Is it worth to create lazy dictionary in this case?
private readonly Dictionary<string, TreeNode> _treeChildren; // null
private readonly Dictionary<string, TreeNode> _treeChildren; // null
7 replies
CC#
Created by SWEETPONY on 2/3/2023 in #help
❔ Is it worth to create lazy dictionary in this case?
Just use this
_treeChildren ??= new();
_treeChildren ??= new();
7 replies
CC#
Created by SWEETPONY on 2/3/2023 in #help
❔ Is it worth to create lazy dictionary in this case?
It's not a lazy dictionary, it's just lazily created dictionary. No it's not worth it
7 replies
CC#
Created by Japemaster Brad on 2/3/2023 in #help
❔ HttpClient exiting program during GetStringAsync() and GetAsync()
And don't forget to global exception events, they can help
91 replies
CC#
Created by Halfbax on 2/2/2023 in #help
❔ Custom "block" statement such as while..do
Use Polly, it's ultimate library for this kind of things.
10 replies
CC#
Created by Japemaster Brad on 2/3/2023 in #help
❔ HttpClient exiting program during GetStringAsync() and GetAsync()
Yeah, try cache is required anyway
91 replies
CC#
Created by Japemaster Brad on 2/3/2023 in #help
❔ HttpClient exiting program during GetStringAsync() and GetAsync()
Disable just my code in debug settings, and enable all exception types so visual studio cache everything retry and see what's actually happening.
91 replies