Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16799 for trunk


Ignore:
Timestamp:
04/17/19 07:25:22 (5 years ago)
Author:
gkronber
Message:

#2520: made another fix concerning handling of OldName instead of AllowOneWay in old persistence (fix unit tests).

File:
1 edited

Legend:

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

    r16797 r16799  
    4141    }
    4242    public StorableMemberInfo(StorableAttribute attribute, MemberInfo memberInfo) {
    43       DisentangledName = attribute.Name;
     43      DisentangledName = string.IsNullOrEmpty(attribute.OldName) ? attribute.Name : attribute.OldName;
    4444      DefaultValue = attribute.DefaultValue;
    4545      MemberInfo = memberInfo;
    46       if (string.IsNullOrEmpty(attribute.OldName))
     46      if (string.IsNullOrEmpty(attribute.OldName) && !attribute.AllowOneWay)
    4747        CheckPropertyAccess(memberInfo as PropertyInfo);
    4848    }
Note: See TracChangeset for help on using the changeset viewer.