Althos
Althos
CC#
Created by Althos on 5/25/2024 in #help
Delegate.CreateDelegate returns "ArgumentException: method arguments are incompatible"
Thanks, I was indeed using the wrong overload, thanks for the info too !
5 replies
CC#
Created by Althos on 5/6/2024 in #help
Why isn't my generic working properly ?
well, shit
6 replies
CC#
Created by Althos on 5/6/2024 in #help
Why isn't my generic working properly ?
oh yeah nevermind, that's where the chain breaks
6 replies
CC#
Created by js on 5/4/2024 in #help
✅ wont let me call my method
no problem 🙂
17 replies
CC#
Created by js on 5/4/2024 in #help
✅ wont let me call my method
Try order.AddToOrder with a lowercase "o"
17 replies
CC#
Created by js on 5/4/2024 in #help
✅ wont let me call my method
Your first call cannot work because you need to create an instance of whatever the class that contains "AddToOrder" is called
17 replies
CC#
Created by js on 5/4/2024 in #help
✅ wont let me call my method
I'm assuming the class you're calling "AddToOrder" from and "AddToOrder" are different ?
17 replies
CC#
Created by Althos on 3/4/2023 in #help
❔ Is there a better way to implement this "pattern"?
For hierarchical structures, but it's mostly an example of the pattern
16 replies
CC#
Created by FaNim on 3/4/2023 in #help
How to save and restore window position in wpf c#
You need to create a folder named Properties at the root of your project, then right-click on it -> Add new item -> Settings file
13 replies
CC#
Created by FaNim on 3/4/2023 in #help
How to save and restore window position in wpf c#
That's coming from a Settings file, which is something you have to add to your Properties folder by yourself
13 replies
CC#
Created by Suiram1 on 3/4/2023 in #help
Set a class attribute result with a custom attribute
You want to apply an attribute to other attributes of the method your attribute is attached to?
21 replies
CC#
Created by FaNim on 3/4/2023 in #help
How to save and restore window position in wpf c#
You mean the properties that get displayed in the Visual Studio Properties window?
13 replies
CC#
Created by Taylor. on 3/4/2023 in #help
option 4 and option 5 doesnt work
You'll also have to ensure that whatever the user inputted is one of the expected inputs
10 replies
CC#
Created by Taylor. on 3/4/2023 in #help
option 4 and option 5 doesnt work
Yes, all Console.WriteLine does is display the text you supplied it to the console, to read user inputs, you need to use either Console.ReadKey() or Console.ReadLine(), depending on whether you need to read a character or a string input
10 replies