/// <summary> /// Copies properties from this instance to a container. /// </summary> /// <param name="destination">The destination.</param> public void CopyTo(ref PropertyContainer destination) { foreach (var keyValuePair in this) { destination.SetObject(keyValuePair.Key, keyValuePair.Key.IsValueType ? ((ValueHolder)keyValuePair.Value).ObjectValue : keyValuePair.Value); } }
/// <summary> /// Copies properties from this instance to a container. /// </summary> /// <param name="destination">The destination.</param> public void CopyTo(ref PropertyContainer destination) { foreach (var keyValuePair in this) { destination.SetObject(keyValuePair.Key, keyValuePair.Value); } }
/// <inheritdoc /> public void SetObject([NotNull] PropertyKey propertyKey, object tagValue) { inner.SetObject(propertyKey, tagValue); }