public StorableMemberInfo(StorableAttribute attribute, MemberInfo memberInfo) {
   DisentangledName = attribute.Name;
   DefaultValue = attribute.DefaultValue;
   MemberInfo = memberInfo;
   if (!attribute.AllowOneWay)
     CheckPropertyAccess(memberInfo as PropertyInfo);
 }
 public StorableMemberInfo(StorableAttribute attribute, MemberInfo memberInfo)
 {
     DisentangledName = attribute.Name;
     DefaultValue     = attribute.DefaultValue;
     MemberInfo       = memberInfo;
     if (!attribute.AllowOneWay)
     {
         CheckPropertyAccess(memberInfo as PropertyInfo);
     }
 }
示例#3
0
 public StorableMemberInfo(StorableAttribute attribute, MemberInfo memberInfo)
 {
     DisentangledName = string.IsNullOrEmpty(attribute.OldName) ? attribute.Name : attribute.OldName;
     DefaultValue     = attribute.DefaultValue;
     MemberInfo       = memberInfo;
     if (string.IsNullOrEmpty(attribute.OldName) && !attribute.AllowOneWay)
     {
         CheckPropertyAccess(memberInfo as PropertyInfo);
     }
 }