donald,
You can't really get these from the system. Some people use the sizeof
operator (or Marshal.SizeOf method), but you can't do that, since it will
give you the size of the marshaled type (to unmanaged code).
For primitive types (things like int, bool, double, etc, etc), these
sizes are well known, but for classes and the like, the only way you can
determine that is through a hook into the CLR.
What exactly are you trying to do?
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"donald" <do*********@gmail.comwrote in message
news:eA**************@TK2MSFTNGP05.phx.gbl...
how to get the length of variable for differernt data type, such as data
type of structure, integer, date, etc.
Thanks in advance.