[reflection] Coop handles icalls in System.Reflection and System.RuntimeTypeHandle...
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / System.Activities.Presentation / System / Activities / Presentation / ViewModel.cs
1 //----------------------------------------------------------------
2 // <copyright company="Microsoft Corporation">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 //----------------------------------------------------------------
6
7 namespace System.Activities.Presentation
8 {
9     using System.ComponentModel;
10
11     internal abstract class ViewModel : INotifyPropertyChanged
12     {
13         public event PropertyChangedEventHandler PropertyChanged;
14
15         protected void NotifyPropertyChanged(string propertyName)
16         {
17             if (this.PropertyChanged != null)
18             {
19                 this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
20             }
21         }
22     }
23 }