You need Marshal.SizeOf
Edit: This is for unsafe code, but then, so is sizeof().
More Related Contents:
- How to remove all event handlers from an event
- What is a method group in C#?
- Is there an easy way to create ordinals in C#?
- Reading 64bit Registry from a 32bit application
- Restarting (Recycling) an Application Pool
- In C#, how to check if a TCP port is available?
- Suspend Process in C#
- Extension methods must be defined in a non-generic static class
- How to call .NET methods from Excel VBA?
- Exact time measurement for performance testing [duplicate]
- Printing from a .NET Service [closed]
- How to get property change notifications with EF 4.x DbContext generator
- Does using parameterized SqlCommand make my program immune to SQL injection?
- Does reactive extensions support rolling buffers?
- How to display a Windows Form in full screen on top of the taskbar? [duplicate]
- How is GetHashCode() implemented for Int32?
- Is there a much better way to create deep and shallow clones in C#?
- Error 0x80005000 and DirectoryServices
- Using C# 6 features with CodeDomProvider (Roslyn)
- How can I get the name of a variable passed into a function?
- Custom xmlWriter to skip a certain element?
- How to edit .csproj file
- Remove Item in Dictionary based on Value
- Get affected rows on ExecuteNonQuery
- OraOLEDB.Oracle provider is not registered on the local machine
- How does ToString on an anonymous type work?
- Mono Compiler as a Service (MCS)
- How to display ClickOnce Version number on Windows Forms
- Deserializing JSON into an object with Json.NET
- RichTextBox Newline Conversion?