Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/20/17 15:56:55 (8 years ago)
Author:
gkronber
Message:

#2520 added versions to storable types and implemented conversion unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceOverhaul/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableTypeAttribute.cs

    r14711 r14771  
    3737
    3838    public Guid Guid { get; private set; }
    39     public bool Released { get; set; }
     39    public uint Version { get; set; }
    4040
    4141    /// <summary>
     
    4343    /// </summary>
    4444    /// <param name="memberSelection">The storable class memberSelection.</param>
    45     public StorableTypeAttribute(StorableMemberSelection memberSelection, string guid) {
     45    public StorableTypeAttribute(StorableMemberSelection memberSelection, string guid, uint version = 1) {
    4646      MemberSelection = memberSelection;
    4747      Guid = new Guid(guid);
    48       Released = false;
     48      Version = version;
    4949    }
    5050
    51     public StorableTypeAttribute(string guid) {
     51    public StorableTypeAttribute(string guid, uint version = 1) {
    5252      Guid = new Guid(guid);
    53       Released = false;
     53      Version = version;
    5454    }
    5555
Note: See TracChangeset for help on using the changeset viewer.