המשורר
המשורר
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
How can I make it without underscore
47 replies
CC#
Created by Archion on 7/6/2024 in #help
What the hell is this error?
This can manifest as a System.DllNotFoundException.
47 replies
CC#
Created by Archion on 7/6/2024 in #help
What the hell is this error?
did you include project dependencies?
47 replies
CC#
Created by Archion on 7/6/2024 in #help
What the hell is this error?
47 replies
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
commands is a list of commands
47 replies
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
{
"commands": [
{
"name": "log",
"allowedFlags": [ "pretty" ],
"arguments": [],
"flags": [
{
"pretty": "%h~%cn~%ch~%cI~%s"
}
]
}
]
}
{
"commands": [
{
"name": "log",
"allowedFlags": [ "pretty" ],
"arguments": [],
"flags": [
{
"pretty": "%h~%cn~%ch~%cI~%s"
}
]
}
]
}
47 replies
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
still error
47 replies
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
like it should
47 replies
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
is has everything even names are the same between json and variables
47 replies
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
[JsonConstructor]
public Command(
string name,
HashSet<string> allowedFlags,
List<Flag> flags,
List<string> arguments)
{
Name = name;
_allowedFlags = allowedFlags;
_flags = flags;
_arguments = arguments;
}
[JsonConstructor]
public Command(
string name,
HashSet<string> allowedFlags,
List<Flag> flags,
List<string> arguments)
{
Name = name;
_allowedFlags = allowedFlags;
_flags = flags;
_arguments = arguments;
}
47 replies
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
I created this
47 replies
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
There is but it doesn't matter ig
47 replies
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
it says the problem is in the Command class
47 replies
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
maybe I should've done this one different?
47 replies
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
flag is a simple record
public record Flag(string Name, string Value);
public record Flag(string Name, string Value);
47 replies
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
still incorrect
47 replies
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
so flags should be:
"flags": {
"flagname": "flagvalue",
}
"flags": {
"flagname": "flagvalue",
}
47 replies
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
still not working though
47 replies
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
"flags": [
{
"name": "pretty",
"value": "%h~%cn~%ch~%cI~%s"
}
]
"flags": [
{
"name": "pretty",
"value": "%h~%cn~%ch~%cI~%s"
}
]
47 replies
CC#
Created by המשורר on 7/6/2024 in #help
JsonSerialization Help
i've changed it to a list of dict<string, string>
47 replies