public CopyFrom ( |
||
att | /// The attribute from which to copy. /// | |
Résultat | void |
/// <summary> /// Copies data from another node set /// </summary> public void CopyFrom(ExtensionNodeType ntype) { base.CopyFrom(ntype); this.typeName = ntype.TypeName; this.objectTypeName = ntype.ObjectTypeName; this.description = ntype.Description; this.addinId = ntype.AddinId; Attributes.Clear(); foreach (NodeTypeAttribute att in ntype.Attributes) { NodeTypeAttribute catt = new NodeTypeAttribute(); catt.CopyFrom(att); Attributes.Add(catt); } }
/// <summary> /// Copies data from another node set /// </summary> public void CopyFrom (ExtensionNodeType ntype) { base.CopyFrom (ntype); this.typeName = ntype.TypeName; this.objectTypeName = ntype.ObjectTypeName; this.description = ntype.Description; this.addinId = ntype.AddinId; Attributes.Clear (); foreach (NodeTypeAttribute att in ntype.Attributes) { NodeTypeAttribute catt = new NodeTypeAttribute (); catt.CopyFrom (att); Attributes.Add (catt); } }