sp00ktober
Explore posts from servers❔ nested generic interface throws cast exception when added to list
in
does not seem to change anything, out
on the other hand tells me The parameter "H" must be contraviniant and valid for "IComponentUpdateHandler<T, H, C>.HandleUpdate(ENetPeerHandle, long, H, C)" "H" is covariant.
27 replies
❔ nested generic interface throws cast exception when added to list
just in this case means some more complicated patches for me which will potentially break the whole game that this mod project is about, so if it is really required to do this then im afraid i need to find another way to implement similar functionality :/
would have been too good 😅
27 replies
❔ nested generic interface throws cast exception when added to list
i have nearly no control over the
Update
and Data
classes as well as the InventoryModificationState
class and the IComponentXXXX
interfaces.
as i wrote this is part of a modding project and i need to work with these, so i hope its possible to solve this without modifying those mentioned interfaces/classes.
gonne look at the in/out part you mentioned, never actually used it27 replies
❔ nested generic interface throws cast exception when added to list
maybe you can elaborate a bit more on this? i've read through the article (and the linked one about interfaces) but this give me even more the feeling that i am doing things correctly here.
tho something must be off and im just not seeing it
27 replies