Skip to content

Commit

Permalink
Improved documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrumhurum committed Dec 31, 2024
1 parent 1d4048b commit 639a278
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Program
> `Run` method is annotated by `[MethodImpl(MethodImplOptions.NoInlining)]` attribute.
> That attribute instructs .NET Runtime to not inline the `Run` method into its calling methods.
> It is necessary to disable inlining because the `Run` method may potentially reference types from not yet loaded assemblies, specifically those from `ContosoEngine.dll`.
> Those references will lead to inability of .NET Runtime to start executing the method, because they are resolved *before* a method starts to run.
> Those references will lead to inability of .NET Runtime to start executing the method, because they are being resolved *before* a method starts to run.
> And the references cannot be resolved until a proper assembly loader is configured,
> and it will not be configured due to the presence of unresolvable type references that were inlined from the `Run` method.
> To break that chicken and egg dilemma, *the method inlining should be disabled*.
Expand Down

0 comments on commit 639a278

Please sign in to comment.