Spielepapagei
Spielepapagei
CC#
Created by Spielepapagei on 3/30/2025 in #help
Reflection error Object type T does not match target type System.RuntimeType.
Um I looked around and yeah I found a Library that already exists and is exactly what I need ^^. "Cocona" is it called. But thank you for your answers.
11 replies
CC#
Created by Spielepapagei on 3/30/2025 in #help
Reflection error Object type T does not match target type System.RuntimeType.
No description
11 replies
CC#
Created by Spielepapagei on 3/30/2025 in #help
Reflection error Object type T does not match target type System.RuntimeType.
>.< well i have no plan how that works but i will look into it thank you.
11 replies
CC#
Created by Spielepapagei on 3/30/2025 in #help
Reflection error Object type T does not match target type System.RuntimeType.
My Commands could be in an different Assembly than i executing in if i'm understanding this correct i can't make it generic then?! Please Correct me if I'm wrong im still Learning.
11 replies
CC#
Created by Spielepapagei on 3/30/2025 in #help
Reflection error Object type T does not match target type System.RuntimeType.
Yes command.CommandReference returns a Type oh so i can't just use the command.CommandReference in the Invoke Method. Thank you :) I got it working I added this line and used now classInstance to Invoke my Method ^^
var classInstance = Activator.CreateInstance(command.CommandReference);
var classInstance = Activator.CreateInstance(command.CommandReference);
11 replies