Fix spelling mistake
parent
ebbde02a80
commit
6d61eb7d1f
|
@ -203,7 +203,7 @@ The following sample binds to the `AppOptions` class:
|
|||
|
||||
[!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
|
||||
var appConfig = config.GetSection("App").Get<AppOptions>();
|
||||
|
|
Loading…
Reference in New Issue