Why does XML support only strings as attributes? I hate constantly having to cast shit.

Follow

@mergan I'm using C# and MonoGame. XML is basically the standard for storing/retrieving data in C# and other .NET/Mono languages.

· · Web · 1 · 0 · 0
@xianc78 If I recall correctly, MonoGame has a JSON importer.

Alternatively you could store the type along with the value and have a general casting method.
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.