Is there a way to say something like:
SizeOf (type)? Or enter. The size?
Now I'm looking at using code like:
if (type.Equals(typeof(int))) return sizeof(int); else if (type.Equals(typeof(long))) return sizeof(long);
etc. for each individual data type.
There should be a cleaner solution, no?
c #
archimedes
source share