36 Replies
cs here has a value of
Im literally serializing something and deserializing it and it throws an error, Im so confused
this works fine with an int instead of a Control, or with the c array set to be empty
I mean, yes it works with an int
Because it's a simple type
I don't suppose those... Winforms controls or whatever they are will be easily serializeable
They're a custom class
It's basically just 3 enums
It serializes just fine, it just doesn't work deserializing
If they're enums, they should serialize fine
that's what Im saying
but it ain't working
How are you serializing it?
that's the whole code
no more no less
Well
You're serializing them empty
Ah, wait
well it should work still
Yeah
are Keys, MouseButton and Buttons enum?
yes
the serializing part goes fine, and then it just doesn't wanna work on deserializing
shit you can compile on discord now?
Angius
REPL Result: Success
Result: <>f__AnonymousType0#1<string, Control[]>
Compile: 621.427ms | Execution: 108.342ms | React with ❌ to remove this embed.
It works
huhh
Maybe because it's a struct...?
works here
Angius
REPL Result: Success
Result: <>f__AnonymousType0#1<string, Control[]>
Compile: 644.121ms | Execution: 104.912ms | React with ❌ to remove this embed.
Yeah nah, works with a struct
It's all enums
This is the constructor
Monogame?
yup
The Control class is a custom one I made
i have monogame, i can test
well yeah but it doesn't have anything to do with it
it should be basic c#
in case
whats Fiourp.MouseButton ?
probably an enum u made
Custom enum
bruh
I just updated dotnet
And now it works
yeah i just ran it right now and it works
thank you all for the help
the problem was me running dotnet 6.2 and i needed dotnet 6.4
yay
defnitly not frustrated lol
weird
yea
Ig the small patches do matter
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.