public CopyFrom ( |
||
att | /// The attribute from which to copy. /// | |
리턴 | void |
public void CopyFrom(NodeTypeAttribute att)
{
name = att.name;
type = att.type;
required = att.required;
localizable = att.localizable;
description = att.description;
}
/// <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); } }