Yawnder
[Async Hell] Messed up Stacktrace
@Ploxi Generally the stack trace is preserved. Where it gets less obvious is when the error happens in code that is deeper, but when it's encountered shallower in the stack.
For example, if you have an exception in the
Where
clause of a Linq query, but you don't ToList()
it, your stack trace will look like it's a bit out of nowhere since it didn't happen in the method where you added the clause, but where the call got resolved.8 replies
✅ Good way to access methods from other classes?
Right now, what you're doing is basically a large class containing a reference to one instance of each of these 6 classes. If you instantiate one of these classes elsewhere, it won't be the same instance as this one.
17 replies
✅ Good way to access methods from other classes?
This page here will contain more specific information regarding this: https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/access-modifiers
17 replies
✅ Good way to access methods from other classes?
After that, you have to think about access modifiers (public, private, protected, internal, etc.). These restrict access to what can access it (properly). The namespace is not relevant at that step though, only the assembly, and if a class is part of another class for example.
17 replies