public static void CopyTo(this IValueContainer source, IValueContainer target) { if (source == null || target == null || source.GetCount() == 0 || target.GetCount() == 0) { return; } var sourceValues = source.ToEnumerable().ToDictionary(v => v.Name); int targetCount = target.GetCount(); for (var i = 0; i < targetCount; i++) { var name = target.GetName(i); if (!sourceValues.TryGetValue(name, out var v) || v.Type != target.GetType(i)) { continue; } target.SetValue(i, v.Value); } }
public void SetValue(int index, object value) => _impl.SetValue(index, value);
public void SetValue(int index, object value) => _valuesProxy.SetValue(index, value);