public ShadowAttributes(ShadowContainer container, object memberKey) { if (container == null) { throw new ArgumentNullException("container"); } if (memberKey == null) { throw new ArgumentNullException("memberKey"); } this.container = container; this.memberKey = memberKey; }
internal void CopyTo(ShadowContainer copy) { copy.id = id; copy.isIdentifiable = isIdentifiable; if (attachedAttributesPerKey != null) { copy.attachedAttributesPerKey = new Dictionary <object, ShadowAttributes>(); foreach (var keyValue in attachedAttributesPerKey) { copy.attachedAttributesPerKey.Add(keyValue.Key, keyValue.Value.Clone()); } } }
public ShadowContainer Clone() { if (attachedAttributesPerKey == null) { return(null); } var container = new ShadowContainer(); container.attachedAttributesPerKey = new Dictionary <object, ShadowAttributes>(); foreach (var keyValue in attachedAttributesPerKey) { container.attachedAttributesPerKey.Add(keyValue.Key, keyValue.Value.Clone()); } return(container); }
public ShadowContainer Clone() { if (attachedAttributesPerKey == null) { return null; } var container = new ShadowContainer(); container.attachedAttributesPerKey = new Dictionary<object, ShadowAttributes>(); foreach (var keyValue in attachedAttributesPerKey) { container.attachedAttributesPerKey.Add(keyValue.Key, keyValue.Value.Clone()); } return container; }
internal void CopyTo(ShadowContainer copy) { copy.id = id; copy.isIdentifiable = isIdentifiable; if (attachedAttributesPerKey != null) { copy.attachedAttributesPerKey = new Dictionary<object, ShadowAttributes>(); foreach (var keyValue in attachedAttributesPerKey) { copy.attachedAttributesPerKey.Add(keyValue.Key, keyValue.Value.Clone()); } } }
public ShadowContainer Clone() { var container = new ShadowContainer(this); return container; }
public ShadowContainer(ShadowContainer copy) { copy.CopyTo(this); }
public ShadowContainer Clone() { var container = new ShadowContainer(this); return(container); }
public ShadowContainer(ShadowContainer copy) { copy.CopyTo(this); }