Skip to content

Commit 04889c0

Browse files
jamesmcroftSergio0694
authored andcommitted
Updated reasoning for omitting VerifyPropertyName
1 parent 536520b commit 04889c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/mvvm/MigratingFromMvvmLight.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ this.OnPropertyChanged(nameof(this.MyProperty));
127127

128128
There is no direct replacement for the `VerifyPropertyName(string)` method and any code using this should be altered or removed.
129129

130+
The reason for the omission from the MVVM Toolkit is that using the `nameof` keyword for a property verifies that it exists. When MvvmLight was built, the `nameof` keyword was not available and this method was used to ensure that the property existed on the object.
131+
130132
```csharp
131133
// MvvmLight
132134
this.VerifyPropertyName(nameof(this.MyProperty));

0 commit comments

Comments
 (0)