CopyFrom() public méthode

Copies data from another node attribute.
public CopyFrom ( NodeTypeAttribute att ) : void
att NodeTypeAttribute /// The attribute from which to copy. ///
Résultat void
Exemple #1
0
 /// <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);
			}
		}