Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/11/10 12:54:14 (15 years ago)
Author:
epitzer
Message:

add complete persistence API docs (#548)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/DataMemberAccessor.cs

    r1938 r3004  
    55namespace HeuristicLab.Persistence.Default.CompositeSerializers.Storable {
    66
     7  /// <summary>
     8  /// Encapsulation and abstraction for access a data member of an object
     9  /// regardless of it being a property or field. Addicionally a
     10  /// default value and an alternate name can be specified.
     11  /// </summary>
    712  public class DataMemberAccessor {
    813
     
    1217    public readonly object DefaultValue;
    1318
     19
     20    /// <summary>
     21    /// Create a DataMemberAccessor from a FieldInfo or PropertyInfo for the give object.
     22    /// </summary>
    1423    public DataMemberAccessor(MemberInfo memberInfo, string name, object defaultvalue, object obj) {
    1524      Name = name;
     
    3342    }
    3443
     44    /// <summary>
     45    /// Wrap existing getter and setter functions.
     46    /// </summary>
    3547    public DataMemberAccessor(string name, object defaultValue,
    3648        Func<object> getter, Action<object> setter) {
     
    4052      Set = setter;
    4153    }
    42 
     54   
     55    /// <summary>
     56    /// Create an empty accessor that just encapsulates an object
     57    /// without access.
     58    /// </summary>
    4359    public DataMemberAccessor(object o) {
    4460      Name = null;
     
    4864    }
    4965
     66    /// <summary>
     67    /// Create an empty accessor that just encapsulates an object
     68    /// without access.
     69    /// </summary>
    5070    public DataMemberAccessor(object o, string name) {
    5171      Name = name;
     
    5474      Set = null;
    5575    }
    56 
    5776
    5877    public override string ToString() {
Note: See TracChangeset for help on using the changeset viewer.