troubleshooting Question

Changing type of some variables

Avatar of paulwhelan
paulwhelan asked on
C#
4 Comments1 Solution245 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
ASKER CERTIFIED SOLUTION
newton2k

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
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 4 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