Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/15 18:47:21 (8 years ago)
Author:
swagner
Message:

#2520: Worked on persistence overhaul

File:
1 edited

Legend:

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

    r12012 r13347  
    3636    public StorableClassType Type { get; private set; }
    3737
     38    public Guid Guid { get; private set; }
     39    public bool Released { get; set; }
     40
    3841    /// <summary>
    3942    /// Mark a class to be serialize by the <c>StorableSerizlier</c>
    4043    /// </summary>
    4144    /// <param name="type">The storable class type.</param>
    42     public StorableClassAttribute(StorableClassType type) {
     45    public StorableClassAttribute(StorableClassType type, string guid) {
    4346      Type = type;
     47      Guid = new Guid(guid);
     48      Released = false;
    4449    }
    4550
     
    6166    }
    6267
     68    public static StorableClassAttribute GetStorableClassAttribute(Type type) {
     69      return (StorableClassAttribute)Attribute.GetCustomAttribute(type, typeof(StorableClassAttribute), false);
     70    }
     71
    6372  }
    6473}
Note: See TracChangeset for help on using the changeset viewer.