blue λ
blue λ
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
these have been some interesting 72h of using c# 😭
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
thank you so muchhh
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
just some il errors now because of the generator
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
that worked im cryinggggggg
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
i tried ev.DeclaringType literally lol
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
ohhh ok
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
lemme try with it
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
the addeventhandler
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
yeah, non-static method requires a target
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
let me try it again
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
oh ok, did this before now it says the object does not match the target type when attaching the event handler. thats because of the _modEntry in the AddEventHandler. but setting it to null creates another error, saying the target can only be set as null if the method is static iirc
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
lemme try it
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
it's the target doesn't work without it too if i recall correctly
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
lemme try taking it out, it's from stuff i was trying out earlier
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
however as @Windows10CE still doesn't work. the stack thing was going to be an issue but not anymore cant bind to the target method because its signature is not compatible with that of the delegate type
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
thats useful! thank u so much, its going to save me from implementing a method just for that
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
btw the sender is null (not sure if this usual or not)
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
the dynamic method takes types extracted from the event Invoke function, which would be object for the sender and ButtonPressedArgs for the arg
65 replies
CC#
Created by blue λ on 1/22/2023 in #help
❔ Loading arbitrary values onto a ILGenerator stack
the most obvious issue here is the fact that the Call method I've got at methodOverload has 3 arguments, while I've only got 2 loaded on my IL stack
65 replies