ParaLogia
Simulating electricity flow in wire/component classes in a linked list like manner
I think some of us need help with the physics part in order to understand this...
In your example, if the wire did connect back to Source2, what would the expected voltage be?
11 replies
Getting a random number from 1 to 10
You can use this method on a
Random
object
https://learn.microsoft.com/en-us/dotnet/api/system.random.next?view=net-8.0#system-random-next(system-int32-system-int32)10 replies
❔ How to dynamically load a different version of an assembly in the NET Core shared framework
Update: I found out that System.Threading.Channels is part of the NET Core shared framework, so the issue is probably that the NET 6 project already had the 6.0.0 version loaded, unless I specified the 7.0.0 version via nuget.
From my research,
Assembly.LoadFrom
uses the default AssemblyLoadContext
, and each context is limited to loading one single version of a given assembly (name).
So I'm considering two new approaches:
1. Using a custom AssemblyLoadContext
2. Using Assembly.LoadFile
instead of Assembly.LoadFrom
I'm not sure what the potential ramifications/pitfalls of these approaches are, so I'd appreciate if anyone can chime in with suggestions.3 replies