How can I achieve inheritance (or similar) with structs in C#? I know that an abstract struct isn\'t possible, but I need to achieve something similar.
I need it as
You can use interfaces
interface IVertex { int SizeInBytes(); void SetPointers(); } struct ColorVertex : IVertex { Vector3 Position; Vector4 Color; int SizeInBytes { get { return (3 + 4) * 4; } } void SetVertexPointers() { ... } }