Evyr
Evyr
Explore posts from servers
CC#
Created by cowbloke on 1/21/2025 in #help
✅ inaccessible due to its protection level error when the const i'm reaching is public
oh, nevermind then
29 replies
CC#
Created by cowbloke on 1/21/2025 in #help
✅ inaccessible due to its protection level error when the const i'm reaching is public
you're calling startingFen on the FenParser type, not the instance fenParser
29 replies
CC#
Created by Ricky on 1/3/2025 in #help
EasyHook issue
why do you need to fetch that code from another computer, instead of including it with the process that'll already run on computer A?
14 replies
CC#
Created by Ricky on 1/3/2025 in #help
EasyHook issue
So just in case I'm misinterpreting this, you're running a process on computer A to inject code into another process, where that code is fetched from another machine?
14 replies
CC#
Created by Ricky on 1/3/2025 in #help
EasyHook issue
I struggle to come up with any reason why you'd need to go to these lengths other than to try and bypass an anticheat
14 replies
CC#
Created by on 11/21/2024 in #help
When should one use a custom delegate instead of Func/Action/Predicate?
if you're using += then yes, but if you're assigning to md then no
122 replies
CC#
Created by on 11/21/2024 in #help
When should one use a custom delegate instead of Func/Action/Predicate?
you could also do Action<string> = Console.WriteLine in this case
122 replies
CC#
Created by on 11/21/2024 in #help
When should one use a custom delegate instead of Func/Action/Predicate?
yeah they're both anonymous functions
122 replies
CC#
Created by on 11/21/2024 in #help
When should one use a custom delegate instead of Func/Action/Predicate?
if that was Func a = func1 + func2 + func3; with a return type, it'll return the result of func3 only, not a sum of them, but 99% of the time that doesn't matter
122 replies
CC#
Created by on 11/21/2024 in #help
When should one use a custom delegate instead of Func/Action/Predicate?
Correct, yeah
122 replies
CC#
Created by on 11/21/2024 in #help
When should one use a custom delegate instead of Func/Action/Predicate?
When you invoke any delegate type, whether it be Func, Action, Delegate, Event, etc it just invokes every method added to its invocation list sequentially, and if that delegate type has a return type, it returns the result of the last delegate in its invocation list
122 replies
CC#
Created by on 11/21/2024 in #help
When should one use a custom delegate instead of Func/Action/Predicate?
but you can just as well have MyEventDelegate MyEvent on its own and subscribe to it, you just won't have a couple of extra protections, bells and whistles that come with events specifically
122 replies
CC#
Created by on 11/21/2024 in #help
When should one use a custom delegate instead of Func/Action/Predicate?
then you can subscribe to that event
122 replies
CC#
Created by on 11/21/2024 in #help
When should one use a custom delegate instead of Func/Action/Predicate?
the convention is you define your delegate type for the event, say
delegate void MyEventDelegate(object sender, MyEventArgs e);
event MyEventDelegate MyEvent;
delegate void MyEventDelegate(object sender, MyEventArgs e);
event MyEventDelegate MyEvent;
122 replies
CC#
Created by on 11/21/2024 in #help
When should one use a custom delegate instead of Func/Action/Predicate?
Because all delegates have invocation lists, not just events
122 replies
CC#
Created by on 11/21/2024 in #help
When should one use a custom delegate instead of Func/Action/Predicate?
you can do events that way, but C# has a convention with events using the event keyword
122 replies
CC#
Created by on 11/21/2024 in #help
When should one use a custom delegate instead of Func/Action/Predicate?
You're casting multiple methods to the delegate type, then when you invoke that delegate it sequentially invokes each method assigned to it
122 replies
CC#
Created by on 11/21/2024 in #help
When should one use a custom delegate instead of Func/Action/Predicate?
Func and Action are delegate types in the base class language and are delegates, the delegate keyword defines a new delegate
122 replies
CC#
Created by on 11/21/2024 in #help
When should one use a custom delegate instead of Func/Action/Predicate?
Delegate is the base class for Func and Action iirc
122 replies
CC#
Created by on 11/21/2024 in #help
When should one use a custom delegate instead of Func/Action/Predicate?
Though the same logic applies
122 replies