Example #1
0
 private DataMemberAccessor GetMemberAccessor(StorableMemberInfo mi)
 {
     lock (accessorCache) {
         if (accessorCache.ContainsKey(mi.MemberInfo))
         {
             return(new DataMemberAccessor(accessorCache[mi.MemberInfo], mi.DisentangledName, mi.DefaultValue));
         }
         var dma = new DataMemberAccessor(mi.MemberInfo, mi.DisentangledName, mi.DefaultValue);
         accessorCache[mi.MemberInfo] = dma;
         return(dma);
     }
 }