Supporting empty string as parameter of RaisePropertyChanging and RaisePropertyChanged in Win8
This commit is contained in:
Родитель
d2651f1aff
Коммит
e1478ab596
|
@ -139,15 +139,6 @@ namespace GalaSoft.MvvmLight
|
|||
string propertyName)
|
||||
#endif
|
||||
{
|
||||
#if NETFX_CORE
|
||||
if (string.IsNullOrEmpty(propertyName))
|
||||
{
|
||||
throw new NotSupportedException(
|
||||
"Raising the PropertyChanged event with an empty string or null is not supported in Windows 8");
|
||||
}
|
||||
else
|
||||
{
|
||||
#endif
|
||||
VerifyPropertyName(propertyName);
|
||||
|
||||
var handler = PropertyChanging;
|
||||
|
@ -155,9 +146,6 @@ namespace GalaSoft.MvvmLight
|
|||
{
|
||||
handler(this, new PropertyChangingEventArgs(propertyName));
|
||||
}
|
||||
#if NETFX_CORE
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if CMNATTR
|
||||
|
|
Загрузка…
Ссылка в новой задаче