Changeset 16723 for branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab.Persistence-3.3/StorableAttributeTests.cs
- Timestamp:
- 03/28/19 16:54:20 (6 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Tests
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab.Persistence-3.3/StorableAttributeTests.cs
r16692 r16723 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;22 using HEAL.Attic; 23 23 24 24 namespace HeuristicLab.Persistence.Tests { 25 25 26 [Storable Class]26 [StorableType("EF55A82D-7D9B-486E-B811-4DCC389FDB05")] 27 27 class DemoClass { 28 28 … … 34 34 35 35 public int y = 0; 36 37 [StorableConstructor] 38 protected DemoClass(StorableConstructorFlag _) { 39 } 40 public DemoClass() { 41 } 36 42 } 37 43 38 [Storable Class]44 [StorableType("31F18F9A-C25D-449D-900A-FEBF95D7CE39")] 39 45 class Base { 40 46 public string baseName; … … 44 50 set { baseName = value; } 45 51 } 52 53 [StorableConstructor] 54 protected Base(StorableConstructorFlag _) { 55 } 56 public Base() { 57 } 46 58 } 47 59 48 [Storable Class]60 [StorableType("DF26C284-08C4-4703-A1A4-AFE834079B85")] 49 61 class Override : Base { 50 62 [Storable] … … 53 65 set { base.Name = value; } 54 66 } 67 68 [StorableConstructor] 69 protected Override(StorableConstructorFlag _) : base(_) { 70 } 71 public Override() { 72 } 55 73 } 56 74 57 [Storable Class]75 [StorableType("6BFB1984-6670-4D5E-AEAC-3E77C627AF98")] 58 76 class Intermediate : Override { 77 [StorableConstructor] 78 protected Intermediate(StorableConstructorFlag _) : base(_) { 79 } 80 public Intermediate() { 81 } 59 82 } 60 83 61 [Storable Class]84 [StorableType("856F9BDB-A20C-4B80-981B-5B4F5188FBCD")] 62 85 class New : Intermediate { 63 86 public string newName; … … 67 90 set { newName = value; } 68 91 } 92 93 [StorableConstructor] 94 protected New(StorableConstructorFlag _) : base(_) { 95 } 96 public New() { 97 } 69 98 } 70 99 }
Note: See TracChangeset
for help on using the changeset viewer.