示例#1
0
 /// <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);
     }
 }
示例#2
0
 /// <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);
     }
 }
示例#3
0
 /// <inheritdoc />
 public void SetObject([NotNull] PropertyKey propertyKey, object tagValue)
 {
     inner.SetObject(propertyKey, tagValue);
 }