Skip to content

Commit b3709bf

Browse files
authored
Use string instead of String (#4602)
* Use string instead of String * Update Form1.cs * Re-trigger build
1 parent 25fa174 commit b3709bf

File tree

1 file changed

+4
-4
lines changed
  • samples/snippets/csharp/VS_Snippets_Winforms/System.ComponentModel.IPropertyChangeExample/CS

1 file changed

+4
-4
lines changed

samples/snippets/csharp/VS_Snippets_Winforms/System.ComponentModel.IPropertyChangeExample/CS/Form1.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)