「ᴜɴɪᴄᴜʀꜱᴀʟ」
「ᴜɴɪᴄᴜʀꜱᴀʟ」
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
Hm, okay, than i stick to Core. But how can I remove the other files from the Release Folder? I mean this one "runtimeconfig.json"
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
Okay, thank you. Is there a way to use this in .NET Framework and not .NET Core?
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
Just one more question, is there a way i can check if the json has the correct format? And give an error or something? Or give default values if a letter doesnt have a value in the config?
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
Okay, thank you :)
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
And configs is List Of Config then?
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
Okay changed it too
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
And this one? Isnt it need then too?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TextChanger
{
public class ConfigList
{
private List<Config> configs;
public List<Config> Configs { get => configs; set => configs = value; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TextChanger
{
public class ConfigList
{
private List<Config> configs;
public List<Config> Configs { get => configs; set => configs = value; }
}
}
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
i used this one then, just for more practise in changing that in .NET
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
It doesnt make a difference
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
ConfigName
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
okay i changed that
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
I found it on stackoverflow tbh, so i dont need that _A variables?
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
What do you mean?
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
I already tried, but i doesnt work out, i can send it in, but its very long due to 52 variables
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
yeah, they have the same structure
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
But i have stored multiple configurations in one json
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
Thats the only part i read through, but it explains only how to create an object from a json looking like this
{
"ConfigName": "Something Else",
"A": "ᴬ",
"B": "ᴮ",
"y": "ʸ",
"z": "ᶻ"
}
{
"ConfigName": "Something Else",
"A": "ᴬ",
"B": "ᴮ",
"y": "ʸ",
"z": "ᶻ"
}
60 replies
CC#
Created by 「ᴜɴɪᴄᴜʀꜱᴀʟ」 on 3/17/2023 in #help
❔ Reading a Json-File into a List Of Objects
I read through this, but how do i create a List of objects with this?
60 replies