Get size of struct in C# [duplicate] August 7, 2023 by Tarik The SizeOf method does the trick. int size = System.Runtime.InteropServices.Marshal.SizeOf(typeof(Point));