|
Just do what a tool such as Resharper or CodeRush suggests
Then you can spend your time thinking about more important things
|
|
|
|
|
I manage my own settings (i.e. "config file") using environment variables to determine where to store them (e.g. "Program Data"; "User Data"; "Documents and Settings"; whatever ... depends on the OS).
You can use the .NET "built-in" functions for managing "user.config", but .NET tends to create multiple folders, and copies of your config.file, when you start "versioning" your program (can get really confusing / messy ... IMO).
As for "consumers" of your settings ... use "dependency injection".
(In some cases, settings could be stored on a web server and accessed via a web service by the clients when you're dealing with an app that is "distributed"; e.g. kiosks).
Since we're talking .NET ... manage you settings with a class; serialize and deserialize them using XML; and retrieve them initially at app start-up.
(A "procedure" is just a "function" that "returns" void ... IMO).
modified 21-Aug-14 17:49pm.
|
|
|
|
|
|
Alas, gender and sexuality are two completely separate things -- they'll need to add more options if they wish to combine both into one setting.
|
|
|
|
|
My sexual preference enum has but three options:
public enum SexualPreference
{
Males,
Females,
YesPleaseOhGodYesPleaseAnythingWithAPulse,
}
You looking for sympathy?
You'll find it in the dictionary, between sympathomimetic and sympatric
(Page 1788, if it helps)
|
|
|
|
|
OriginalGriff wrote: My sexual preference enum has but three options:
Women
More Women
Bacon
??
Jeremy Falcon
|
|
|
|
|
O....Kay....
The sexual preference for Bacon is a little freaky, and probably tells us more about you than you would want us to know.
It certainly tells us more about you than I wanted to know!
You looking for sympathy?
You'll find it in the dictionary, between sympathomimetic and sympatric
(Page 1788, if it helps)
|
|
|
|
|
OriginalGriff wrote: The sexual preference for Bacon is a little freaky, and probably tells us more about you than you would want us to know.
Really need a sense of humor there sport.
OriginalGriff wrote: It certainly tells us more about you than I wanted to know!
I'm actually a huge freak. Can't really say much KSS about it though, but that's why women love me. You should be more open yourself if you wanna hang with the big kids.
Jeremy Falcon
|
|
|
|
|
Jeremy Falcon wrote: Really need a sense of humor there sport.
So you think he was being totally serious, and you're taking him to task for failing to see that your post wasn't serious? Oh the irony.
|
|
|
|
|
StatementTerminator wrote: So you think he was being totally serious, and you're taking him to task for failing to see that your post wasn't serious?
Really need a sense of humor there sport.
Jeremy Falcon
|
|
|
|
|
|
Nice.
Jeremy Falcon
|
|
|
|
|
You're discriminating against necrophiles and the transgendered zombies they love, you know.
|
|
|
|
|
My work here is done.
You looking for sympathy?
You'll find it in the dictionary, between sympathomimetic and sympatric
(Page 1788, if it helps)
|
|
|
|
|
|
I'm a transotherkin monoromantic water-identifying snowflake, and Facebook has to acknowledge that because I'm a snowflake.
Gender generator[^]
The SJW types have quite thoroughly jumped the shark with this sh*t.
|
|
|
|
|
Apparently I'm an "Post Gender Anti-Seuxal Cat"...
You looking for sympathy?
You'll find it in the dictionary, between sympathomimetic and sympatric
(Page 1788, if it helps)
|
|
|
|
|
I've changed my mind, I'm a "Mixed Gender Hetero Romantic, Homosexual Badger" now.
|
|
|
|
|
I hit the jackpot! "Gender Non-Conforming Monogamous Elephant Computer Virus"
You looking for sympathy?
You'll find it in the dictionary, between sympathomimetic and sympatric
(Page 1788, if it helps)
|
|
|
|
|
Gender Subversive Anti-Seuxal Glitch
|
|
|
|
|
"Omni Gender Self-Diagnosing Deer"
Erhmmm, what?
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
|
|
|
|
|
Took me a few clicks to get anything nearly close: Gender Dysphoric Polygamist Baker
|
|
|
|
|
"Ungendered Depressed Toad" - How did they know?
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
All these options and I'm missing "None" and "I'd rather not tell"...
It's an OO world.
public class SanderRossel : Lazy<Person>
{
public void DoWork()
{
throw new NotSupportedException();
}
}
|
|
|
|
|
"Whatever gets me more women"
|
|
|
|