Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/25/09 17:16:32 (15 years ago)
Author:
epitzer
Message:

Implement persistence of storables as decomposer. (#506)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/New Persistence Exploration/Persistence/Persistence/Core/StorableAttribute.cs

    r1404 r1419  
    1212  public class EmptyStorableClassAttribute : Attribute {
    1313    private static readonly Dictionary<Type, bool> emptyTypeInfo = new Dictionary<Type, bool>();
    14     public static bool IsEmpyStorable(object o) {
    15       Type type = o.GetType();
     14    public static bool IsEmpyStorable(Type type) {     
    1615      if (emptyTypeInfo.ContainsKey(type))
    1716        return emptyTypeInfo[type];
    18       foreach (var attribute in o.GetType().GetCustomAttributes(false)) {
     17      foreach (var attribute in type.GetCustomAttributes(false)) {
    1918        EmptyStorableClassAttribute empty = attribute as EmptyStorableClassAttribute;
    2019        if (empty != null) {
Note: See TracChangeset for help on using the changeset viewer.