Eyrim
❔ Unable to box custom value type
Hiya, I'm writing a library to interact with MIDI files. I'm laying down some framework stuff (seven bit numbers, Variable Length Quantities [VLQ] etc.), the VLQ's and seven bit numbers are implemented as structs currently.
This is the boxing allocation I'm trying to use:
Full disclosure, I'm pretty new to using structs. I'd normally just throw it into a class but figure I should probably branch out to something better.
Boxing allocation: conversion from 'VariableLengthQuantity' to 'object' requires boxing of value type
8 replies