VBA (and I assume that VB) has a Variant type, which, it seems to me, takes up more memory but spans various data types.
Is there an equivalent in C #?
In the form of a window they say that I had the following, how would I change the type z so that it works fine
private void uxConvertButton_Click(object sender, EventArgs e) { int x = 10; byte j = (byte)x; upDateRTB(j); long q = (long)x; upDateRTB(q); string m = x.ToString(); upDateRTB(m); } void upDateRTB(long z) { MessageBox.Show(this,"amount; "+z); }
source share