#region License Information /* HeuristicLab * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion using HeuristicLab.Persistence; namespace HeuristicLab.Persistence.Tests { [StorableType("8ee9edbf-2e34-46fc-8a61-7d2a5e24b04b")] class DemoClass { [Storable(Name = "TestProperty", DefaultValue = 12)] public object o = null; [Storable] public int x = 2; public int y = 0; } [StorableType("23f9f468-bbb3-4894-babc-a1a26ad2289c")] class Base { public string baseName; [Storable] public virtual string Name { get { return "Base"; } set { baseName = value; } } } [StorableType("a639cd7f-1bef-4899-9394-285d83dfbdbe")] class Override : Base { [Storable] public override string Name { get { return "Override"; } set { base.Name = value; } } } [StorableType("dd917278-d243-4c23-acc2-c6737f28e973")] class Intermediate : Override { } [StorableType("7897d4a6-b848-4c1c-8656-d5004927f1ea")] class New : Intermediate { public string newName; [Storable] public new string Name { get { return "New"; } set { newName = value; } } } }