Skip to content

Commit 8ee97ca

Browse files
committed
Fix links
1 parent af149d4 commit 8ee97ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/standard/assembly/unloadability-howto.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This section assumes the simpler version of the `TestAssemblyLoadContext` is bei
4141

4242
You can create an instance of the custom `AssemblyLoadContext` and load an assembly into it as follows:
4343

44-
!code-csharp[](~/samples/snippets/standard/assembly/unloading/simple_example.cs#3)]
44+
!code-csharp[](~/samples/snippets/standard/assembly/unloading/simple_example.cs#2#3)]
4545

4646
For each of the assemblies referenced by the loaded assembly, the `TestAssemblyLoadContext.Load` method is called so that the `TestAssemblyLoadContext` can decide where to get the assembly from. In our case, it returns `null` to indicate that it should be loaded into the default context from locations that the runtime uses to load assemblies by default.
4747

@@ -238,10 +238,10 @@ This example is used in the debugging above.
238238

239239
### Main testing program
240240

241-
[!code-csharp[Main testing program](~/samples/snippets/core/tutorials/unloading/unloadability_issues_example_main.cs)]
241+
[!code-csharp[Main testing program](~/samples/snippets/standard/assembly/unloading/unloadability_issues_example_main.cs)]
242242

243243
## Program loaded into the TestAssemblyLoadContext
244244

245245
This is the `test.dll` passed to the `ExecuteAndUnload` method in the main testing program.
246246

247-
[!code-csharp[Program loaded into the TestAssemblyLoadContext](~/samples/snippets/core/tutorials/unloading/unloadability_issues_example_test.cs)]
247+
[!code-csharp[Program loaded into the TestAssemblyLoadContext](~/samples/snippets/standard/assembly/unloading/unloadability_issues_example_test.cs)]

0 commit comments

Comments
 (0)