Click here to Skip to main content
15,890,609 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Coding vent post Pin
honey the codewitch8-Dec-21 4:02
mvahoney the codewitch8-Dec-21 4:02 
GeneralRe: Coding vent post Pin
jeron18-Dec-21 4:23
jeron18-Dec-21 4:23 
GeneralRe: Coding vent post Pin
honey the codewitch8-Dec-21 4:33
mvahoney the codewitch8-Dec-21 4:33 
GeneralRe: Coding vent post Pin
jeron18-Dec-21 4:47
jeron18-Dec-21 4:47 
GeneralRe: Coding vent post Pin
honey the codewitch8-Dec-21 5:23
mvahoney the codewitch8-Dec-21 5:23 
GeneralRe: Coding vent post Pin
jeron18-Dec-21 5:28
jeron18-Dec-21 5:28 
Generalmy first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 13:06
Super Lloyd7-Dec-21 13:06 
GeneralRe: my first source code generator, yea!.. and a question Pin
honey the codewitch7-Dec-21 14:32
mvahoney the codewitch7-Dec-21 14:32 
I like MS's for the modifiability but assuming yours is generated I guess it doesn't matter so much.

Why the nullable string type though? It's already a reference type. If they're all strings I'd ditch making it nullable to keep it simple. Then you can just use a basic null check on it. Unless there's some reason for it I don't get.

I wouldn't care about the performance unless you're databinding to a real time graph or something (which I've done)

Dictionaries are pretty quick though but the main issue I see with your UpdateValues() routine (given I don't fully understand what it accomplishes) is that if you have a lot of resources it will end up being slow.

Have you considered using Lazy<T> and loading on demand on a property by property basis? Lazy<T> Class (System) | Microsoft Docs[^]

You can dump one behind each get accessor so it loads the resource the first time on demand. That way you're only loading what you use, and you're not potentially causing a burp in your application's responsiveness when UpdateValues() is called for a lot of resources.

But then I'm spitballing, not having seen all of the code.
Real programmers use butterflies

GeneralRe: my first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 15:43
Super Lloyd7-Dec-21 15:43 
GeneralRe: my first source code generator, yea!.. and a question Pin
honey the codewitch7-Dec-21 15:53
mvahoney the codewitch7-Dec-21 15:53 
GeneralRe: my first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 16:01
Super Lloyd7-Dec-21 16:01 
GeneralRe: my first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 16:12
Super Lloyd7-Dec-21 16:12 
GeneralRe: my first source code generator, yea!.. and a question Pin
honey the codewitch7-Dec-21 16:55
mvahoney the codewitch7-Dec-21 16:55 
GeneralRe: my first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 21:49
Super Lloyd7-Dec-21 21:49 
GeneralRe: my first source code generator, yea!.. and a question Pin
Richard Deeming7-Dec-21 22:32
mveRichard Deeming7-Dec-21 22:32 
GeneralRe: my first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 22:47
Super Lloyd7-Dec-21 22:47 
GeneralAn interesting blockchain read PinPopular
David O'Neil7-Dec-21 5:18
professionalDavid O'Neil7-Dec-21 5:18 
GeneralRe: An interesting blockchain read Pin
raddevus7-Dec-21 5:31
mvaraddevus7-Dec-21 5:31 
GeneralRe: An interesting blockchain read Pin
Fabio Franco8-Dec-21 0:00
professionalFabio Franco8-Dec-21 0:00 
GeneralRe: An interesting blockchain read Pin
raddevus8-Dec-21 3:14
mvaraddevus8-Dec-21 3:14 
GeneralRe: An interesting blockchain read Pin
Yortw8-Dec-21 8:44
Yortw8-Dec-21 8:44 
GeneralRe: An interesting blockchain read Pin
raddevus8-Dec-21 9:07
mvaraddevus8-Dec-21 9:07 
GeneralRe: An interesting blockchain read Pin
Gerry Schmitz7-Dec-21 6:16
mveGerry Schmitz7-Dec-21 6:16 
GeneralRe: An interesting blockchain read Pin
Fabio Franco8-Dec-21 0:07
professionalFabio Franco8-Dec-21 0:07 
GeneralRe: An interesting blockchain read Pin
Fabio Franco8-Dec-21 0:04
professionalFabio Franco8-Dec-21 0:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.