Fix spelling mistake

pull/4633/head
Scott Addie 2017-10-25 16:32:07 -05:00 committed by GitHub
parent ebbde02a80
commit 6d61eb7d1f
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ The following sample binds to the `AppOptions` class:
[!code-csharp[Main](configuration/sample/ObjectGraph/Program.cs?highlight=15-16)] [!code-csharp[Main](configuration/sample/ObjectGraph/Program.cs?highlight=15-16)]
**ASP.NET Core 1.1** and higher can use `Get<T>`, which works with entire sections. `Get<T>` can be more convienent than using `Bind`. The following code shows how to use `Get<T>` with the sample above: **ASP.NET Core 1.1** and higher can use `Get<T>`, which works with entire sections. `Get<T>` can be more convenient than using `Bind`. The following code shows how to use `Get<T>` with the sample above:
```csharp ```csharp
var appConfig = config.GetSection("App").Get<AppOptions>(); var appConfig = config.GetSection("App").Get<AppOptions>();