Changeset 1419 for branches/New Persistence Exploration/Persistence/Persistence/Core/StorableAttribute.cs
- Timestamp:
- 03/25/09 17:16:32 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/New Persistence Exploration/Persistence/Persistence/Core/StorableAttribute.cs
r1404 r1419 12 12 public class EmptyStorableClassAttribute : Attribute { 13 13 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) { 16 15 if (emptyTypeInfo.ContainsKey(type)) 17 16 return emptyTypeInfo[type]; 18 foreach (var attribute in o.GetType().GetCustomAttributes(false)) {17 foreach (var attribute in type.GetCustomAttributes(false)) { 19 18 EmptyStorableClassAttribute empty = attribute as EmptyStorableClassAttribute; 20 19 if (empty != null) {
Note: See TracChangeset
for help on using the changeset viewer.