Add preserve attr to 1326,1400

This commit is contained in:
Samantha Houts 2019-01-15 15:55:57 -08:00
Родитель 4025ae51ea
Коммит 441d5166c5
2 изменённых файлов: 9 добавлений и 8 удалений

Просмотреть файл

@ -33,17 +33,18 @@ namespace Xamarin.Forms.Controls.Issues
Content.BindingContext = _model; Content.BindingContext = _model;
} }
[Preserve(AllMembers = true)]
class MyItem class MyItem
{ {
public String Description { get; set; } public String Description { get; set; }
} }
[Preserve(AllMembers = true)]
class MyItemsViewModel class MyItemsViewModel
{ {
public List<MyItem> MyItems { get; set; } = new List<MyItem>(); public List<MyItem> MyItems { get; set; } = new List<MyItem>();
} }
[Preserve(AllMembers = true)]
class MyViewCell : ViewCell class MyViewCell : ViewCell
{ {
Label label; Label label;

Просмотреть файл

@ -88,8 +88,8 @@ namespace Xamarin.Forms.Controls.Issues
List.ItemsSource = newlist; List.ItemsSource = newlist;
} }
} }
[Preserve(AllMembers = true)]
public class MyData : INotifyPropertyChanged public class MyData : INotifyPropertyChanged
{ {
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
@ -113,8 +113,8 @@ namespace Xamarin.Forms.Controls.Issues
if (PropertyChanged != null) PropertyChanged(this, e); if (PropertyChanged != null) PropertyChanged(this, e);
} }
} }
[Preserve(AllMembers = true)]
public class MyGroup : ObservableCollection<MyData>, INotifyPropertyChanged public class MyGroup : ObservableCollection<MyData>, INotifyPropertyChanged
{ {
string _headertitle; string _headertitle;
@ -131,7 +131,7 @@ namespace Xamarin.Forms.Controls.Issues
} }
} }
} }
[Preserve(AllMembers = true)]
internal class VCTest : ViewCell internal class VCTest : ViewCell
{ {
public VCTest() public VCTest()
@ -141,7 +141,7 @@ namespace Xamarin.Forms.Controls.Issues
View = label; View = label;
} }
} }
[Preserve(AllMembers = true)]
internal class VCHeader : ViewCell internal class VCHeader : ViewCell
{ {
public VCHeader() public VCHeader()