I have a property of type string. Any value must be placed in it: string-> string, number-> string, date> string with regional date display, boolean-> string with boolean representation. Do I need to create a function for each type? It turns out a lot of code, since the numeric types in C # are 10:
SetValue(int InputValue) {}
SetValue(uint InputValue) {}
SetValue(long InputValue) {}
SetValue(ulong InputValue) {}