Skip to content

Commit 4e30572

Browse files
Minor
1 parent 8ae8879 commit 4e30572

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

LazyProxy.Unity.Sample/LazyProxy.Unity.Sample.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
44
<TargetFramework>netcoreapp2.0</TargetFramework>
5+
<LangVersion>8</LangVersion>
56
</PropertyGroup>
67
<ItemGroup>
78
<PackageReference Include="Unity.Container" Version="5.10.2" />

LazyProxy.Unity.Sample/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static void Main(string[] args)
1717
private static void UnityExtensionExample1()
1818
{
1919
// Creating a container
20-
var container = new UnityContainer();
20+
using var container = new UnityContainer();
2121

2222
// Adding a lazy registration
2323
container.RegisterLazy<IMyService, MyService>();

0 commit comments

Comments
 (0)