Home All Groups Group Topic Archive Search About
Author
3 Aug 2006 7:50 PM
Leon_Amirreza
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

Author
2 Aug 2006 9:05 PM
John
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() ?

AddThis Social Bookmark Button