コード例 #1
0
 /// <inheritdoc />
 public override void VisitValueList(object owner, ListValueReflection reflection)
 {
     if (Loader.OnValueList(reflection, out IList list))
     {
         CopyList(list, reflection.GetMember(owner) as IList, reflection.ValueType);
     }
 }
コード例 #2
0
            /// <inheritdoc />
            public override void VisitValueList(object owner, ListValueReflection reflection)
            {
                if (!(reflection.GetMember(owner) is IList member))
                {
                    return;
                }

                for (int i = 0; i < member.Count; i++)
                {
                    if (Saver.OnListValue(i, member[i], reflection, out object newValue))
                    {
                        member[i] = newValue;
                    }
                }
            }