"Position" is a field, not property (#24786)
parent
3293c0c7de
commit
4ee26c05a7
|
@ -18,7 +18,7 @@ An options class:
|
|||
|
||||
* Must be non-abstract with a public parameterless constructor.
|
||||
* All public read-write properties of the type are bound.
|
||||
* Fields are ***not*** bound. In the preceding code, `Position` is not bound. The `Position` property is used so the string `"Position"` doesn't need to be hard coded in the app when binding the class to a configuration provider.
|
||||
* Fields are ***not*** bound. In the preceding code, `Position` is not bound. The `Position` field is used so the string `"Position"` doesn't need to be hard coded in the app when binding the class to a configuration provider.
|
||||
|
||||
The following code:
|
||||
|
||||
|
|
Loading…
Reference in New Issue