Skip to content

Commit

Permalink
仮コードが残っていたので削除
Browse files Browse the repository at this point in the history
  • Loading branch information
roamschemer committed May 19, 2020
1 parent a08d848 commit 950f850
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions XamarinJson/XamarinJson/Models/CoreModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,32 +55,6 @@ public void DeletePerson(Person person) {
public void Clear() => Persons.Clear();
}

//コンストラクタの記述がないのでOK
public class TestClass1 {
public string Name { get; set; }
}

//パラメータなしのコンストラクタがないのでNG
public class TestClass2 {
public string Name { get; set; }

public TestClass2(string name) {
Name = name;
}
}

//パラメータなしのコンストラクタ(オーバーロード)があるのでOK
public class TestClass3 {
public string Name { get; set; }

public TestClass3() {
}

public TestClass3(string name) {
Name = name;
}
}

public class CoreModel : BindableBase {

public ObservableCollection<Category> Categorys { get; set; } = new ObservableCollection<Category>();
Expand Down

0 comments on commit 950f850

Please sign in to comment.