Yawnder
Yawnder
CC#
Created by Ploxi on 4/28/2025 in #help
[Async Hell] Messed up Stacktrace
Another case where the exception looks like it's missing things if when a task is moved around, and not awaited where you'd initially expect it.
8 replies
CC#
Created by Ploxi on 4/28/2025 in #help
[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
CC#
Created by Core on 4/28/2025 in #help
✅ Unable to publish a package despite having a valid API key
I probably had to do the same thing the first time around
8 replies
CC#
Created by Core on 4/28/2025 in #help
✅ Unable to publish a package despite having a valid API key
Great!
8 replies
CC#
Created by Core on 4/28/2025 in #help
✅ Unable to publish a package despite having a valid API key
Maybe it should work directly, but I would do what I just said as a workaround.
8 replies
CC#
Created by Core on 4/28/2025 in #help
✅ Unable to publish a package despite having a valid API key
@Core If I were you, I'd try to upload the first version using the website, then generake an API key targetting that package.
8 replies
CC#
Created by Fumetsu on 4/28/2025 in #help
✅ Good way to access methods from other classes?
Can't know for sure without the actual code, but I don't have time to look into it in details tonight; maybe someone else does, but I can't speak for them.
17 replies
CC#
Created by Fumetsu on 4/28/2025 in #help
✅ Good way to access methods from other classes?
My guess would be that your MainForm probably instantiate it's own instance, so it's not shared with what's in your Classes class.
17 replies
CC#
Created by Fumetsu on 4/28/2025 in #help
✅ 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
CC#
Created by Fumetsu on 4/28/2025 in #help
✅ Good way to access methods from other classes?
I mentioned earlier that the namespace is not relevant either at this point to determine if something can access or not.
17 replies
CC#
Created by Fumetsu on 4/28/2025 in #help
✅ Good way to access methods from other classes?
But yes, some code would help understanding your issue.
17 replies
CC#
Created by Fumetsu on 4/28/2025 in #help
✅ Good way to access methods from other classes?
And also: As I said, the notion of "file" is irrelevant at this point. Remove it from the equation because it's just noise.
17 replies
CC#
Created by Fumetsu on 4/28/2025 in #help
✅ Good way to access methods from other classes?
It depends. If it's an instance member, yes. If it's static, or a constant, no.
17 replies
CC#
Created by Fumetsu on 4/28/2025 in #help
✅ 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
CC#
Created by Fumetsu on 4/28/2025 in #help
✅ 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
CC#
Created by Fumetsu on 4/28/2025 in #help
✅ Good way to access methods from other classes?
First, you got to understand that the file structure is irrelevant. Once compiled, you have assemblies, with namespaces. That's it.
17 replies
CC#
Created by enrico11011 on 4/26/2025 in #help
are there any good, up-to-date books on entity framework core?
Oh
11 replies
CC#
Created by enrico11011 on 4/26/2025 in #help
are there any good, up-to-date books on entity framework core?
If you have questions about EFC, feel free to ask in #database. We're generally quite responsive in there is you scope what you understand/don't understand.
11 replies
CC#
Created by enrico11011 on 4/26/2025 in #help
are there any good, up-to-date books on entity framework core?
What's 2E?
11 replies
CC#
Created by Stefanidze on 4/24/2025 in #help
DateTime rounding struggles
Even if it's a number, on the wire it's still a string all the way up until it's parsed into something else.
13 replies