troubleshooting Question

storing data?

Avatar of paulwhelan
paulwhelan asked on
C#
5 Comments1 Solution216 ViewsLast Modified:
Hi

Im making changes to some code.

We had a variable

private string InitialValue

which was used for five different 'data types' (number, date, string, boolean and enumerator)
so it was suggested that instead of it being

private string InitialValue

for each of the five it should be

private object InitialValue

and then within 'number' it should be

private decimal InitialValue

and within 'date' it should be

private datetime InitialValue

and within 'string' it should be

private boolean InitialValue

and within 'boolean' it should be

private datetime InitialValue



with the aim being that only decimals will be entered as the Initial Value for a number, only booleans will be entered as the Initial Value for booleans.

My question is what should it be for enumerator?

Any questions let me know

Thanks
Paul
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros