Changeset 6221 for branches/PersistenceSpeedUp/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/Descriptors/PropertyDescriptor.cs
- Timestamp:
- 05/17/11 14:19:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceSpeedUp/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/Descriptors/PropertyDescriptor.cs
r6214 r6221 21 21 22 22 using System; 23 using System.Collections.Generic;24 using System.Linq;25 23 using System.Reflection; 26 24 using System.Text; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;28 25 29 26 namespace HeuristicLab.Persistence.Default.CompositeSerializers.Storable.Descriptors { … … 35 32 public sealed class PropertyDescriptor : ITypeComponent { 36 33 34 #region Fields & Properties 37 35 /// <summary> 38 36 /// The type descriptor of the type who declared this property. This … … 82 80 public string Name { get { return StoredName ?? RealName; } } 83 81 84 #region Activation 85 private PropertyInfo handle; 82 internal PropertyInfo handle; 86 83 /// <summary> 87 84 /// The PropertyInfo object as obtained by reflection representing … … 90 87 public PropertyInfo Handle { 91 88 get { 92 try { 93 if (handle == null) 94 handle = DeclaringType.Handle.GetProperty(RealName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); 95 } catch { } 89 if (handle == null) 90 handle = DeclaringType.Handle.GetProperty(RealName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); 96 91 return handle; 97 92 } 98 internal set {99 handle = value;100 }101 93 } 102 94 #endregion … … 119 111 120 112 [StorableConstructor] 121 private PropertyDescriptor(bool deserializing) 113 private PropertyDescriptor(bool deserializing) { } 122 114 123 115 /// <summary> … … 136 128 CanRead = propertyInfo.CanRead; 137 129 CanWrite = propertyInfo.CanWrite; 138 Handle = propertyInfo;130 handle = propertyInfo; 139 131 } 140 132
Note: See TracChangeset
for help on using the changeset viewer.