tmajor99
asked on
C# Copying An Array Class
How do I copy the contents from this array class (valueconditions) to a new array class (obj.valueCondition)?
private treeNode[] GetAllSupplierProductsUsin gFilter(va lueConditi on valueconditions)
{
queryType obj = new queryType();
obj.valueCondition = valueconditions; --> Help?
}
Here is how they are defined.
valueCondition valueconditions = new valueCondition();
public partial class valueCondition : object, System.ComponentModel.INot ifyPropert yChanged {
private string attributeURLField;
private string attributeValueField;
[System.Xml.Serialization. XmlElement Attribute( Order=0)]
public string attributeURL {
get {
return this.attributeURLField;
}
set {
this.attributeURLField = value;
this.RaisePropertyChanged( "attribute URL");
}
}
[System.Xml.Serialization. XmlElement Attribute( Order=1)]
public string attributeValue {
get {
return this.attributeValueField;
}
set {
this.attributeValueField = value;
this.RaisePropertyChanged( "attribute Value");
}
}
private treeNode[] GetAllSupplierProductsUsin
{
queryType obj = new queryType();
obj.valueCondition = valueconditions; --> Help?
}
Here is how they are defined.
valueCondition valueconditions = new valueCondition();
public partial class valueCondition : object, System.ComponentModel.INot
private string attributeURLField;
private string attributeValueField;
[System.Xml.Serialization.
public string attributeURL {
get {
return this.attributeURLField;
}
set {
this.attributeURLField = value;
this.RaisePropertyChanged(
}
}
[System.Xml.Serialization.
public string attributeValue {
get {
return this.attributeValueField;
}
set {
this.attributeValueField = value;
this.RaisePropertyChanged(
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You could try to clone it.
obj.valueCondition = (valueCondition) valueconditions.Clone();