Skip to content

Commit da71034

Browse files
committed
Cleanup: Use auto-property.
1 parent 2f9bc4d commit da71034

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

PhotoTagger/MultiPhotoEdit.xaml.cs

+3-7
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,13 @@ public MultiPhotoEdit() {
1212
InitializeComponent();
1313
}
1414

15-
private readonly MultiPhoto photos = new MultiPhoto() {
15+
public MultiPhoto Photos {
16+
get;
17+
} = new MultiPhoto() {
1618
PhotoSet = new ReadOnlyObservableCollection<Photo>(
1719
new ObservableCollection<Photo>())
1820
};
1921

20-
public MultiPhoto Photos {
21-
get {
22-
return this.photos;
23-
}
24-
}
25-
2622
public ReadOnlyObservableCollection<Photo> PhotoSet {
2723
get {
2824
return (ReadOnlyObservableCollection<Photo>)GetValue(

0 commit comments

Comments
 (0)