|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Sizeof Operator?!1- Is there any .Net function that does the same as sizeof operator in C#
and VB for managed objects and .Net Types? 2- I need the same thing (as in Question 1) for SqlDbType?! (I know the size of Sql Types but i want to get it programmatically rather than hard coding it) Thanks Leon_Amirreza wrote:
Show quote > 1- Is there any .Net function that does the same as sizeof operator in C# > and VB for managed objects and .Net Types? > > 2- I need the same thing (as in Question 1) for SqlDbType?! > (I know the size of Sql Types but i want to get it programmatically rather > than hard coding it) > Thanks > > Marshal.SizeOf() ? |
|||||||||||||||||||||||