Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 14:48:48 (13 years ago)
Author:
mkommend
Message:

Added StorableConstructorTest and StorableClassAttribute.IsStorableClass (ticket #922).

File:
1 edited

Legend:

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

    r4068 r4658  
    5151    public StorableClassAttribute() { }
    5252
     53    /// <summary>
     54    ///  Checks if the <see cref="StorableClassAttribute"/> is present on a type.
     55    /// </summary>
     56    /// <param name="type">The type which should be checked for the <see cref="StorableClassAttribute"/></param>
     57    /// <returns></returns>
     58    public static bool IsStorableClass(Type type) {
     59      object[] attribs = type.GetCustomAttributes(typeof(StorableClassAttribute), false);
     60      return attribs.Length > 0;
     61    }
     62
    5363  }
    5464}
Note: See TracChangeset for help on using the changeset viewer.