File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
samples/snippets/csharp/VS_Snippets_Winforms/System.ComponentModel.IPropertyChangeExample/CS Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -81,15 +81,15 @@ public class DemoCustomer : INotifyPropertyChanged
8181 {
8282 // These fields hold the values for the public properties.
8383 private Guid idValue = Guid . NewGuid ( ) ;
84- private string customerNameValue = String . Empty ;
85- private string phoneNumberValue = String . Empty ;
84+ private string customerNameValue = string . Empty ;
85+ private string phoneNumberValue = string . Empty ;
8686
8787 public event PropertyChangedEventHandler PropertyChanged ;
8888
8989 // This method is called by the Set accessor of each property.
9090 // The CallerMemberName attribute that is applied to the optional propertyName
9191 // parameter causes the property name of the caller to be substituted as an argument.
92- private void NotifyPropertyChanged ( [ CallerMemberName ] String propertyName = "" )
92+ private void NotifyPropertyChanged ( [ CallerMemberName ] string propertyName = "" )
9393 {
9494 if ( PropertyChanged != null )
9595 {
@@ -156,4 +156,4 @@ public string PhoneNumber
156156 }
157157 // </snippet9>
158158}
159- // </snippet1>
159+ // </snippet1>
You can’t perform that action at this time.
0 commit comments