RuntimeHelpers.SizeOf(RuntimeTypeHandle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the size of an object of the given type.
public:
static int SizeOf(RuntimeTypeHandle type);
public static int SizeOf (RuntimeTypeHandle type);
static member SizeOf : RuntimeTypeHandle -> int
Public Shared Function SizeOf (type As RuntimeTypeHandle) As Integer
Parameters
- type
- RuntimeTypeHandle
The type to get the size of.
Returns
The size of instances of the type.
Exceptions
The passed-in type is not a valid type to get the size of.
Remarks
This API returns the same value as SizeOf<T>() for the type that type
represents.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.