/// <summary> /// Adds a value of each accepted type to the list, without a metadata dictionary. /// </summary> void AddValuesToList() { // add as an int, long, and double. syncableNumberList.Add(intVal); syncableNumberList.Add(longVal); syncableNumberList.Add(doubleVal); // Add a value as a string. Instead of going back and forth from // number to string, this is just the int multiplied by a multiplier. syncableNumberList.Add((intVal * stringMultiplier).ToString()); }